mirror of
https://github.com/zigzap/zap.git
synced 2025-10-20 15:14:08 +00:00
doc fixes
This commit is contained in:
parent
6f7e2f89fb
commit
d0424d0d49
1 changed files with 2 additions and 2 deletions
|
@ -22,10 +22,10 @@ struct - and a `session` field of type `?SessionMiddleWare.Session`.
|
|||
|
||||
So `MixContexts` accepts a **tuple** of structs that each contain a
|
||||
`name` field and a `type` field. As a hack, we support the `?` in the name to
|
||||
indicate we want to the resulting struct field to be an optional.
|
||||
indicate we want the resulting struct field to be an optional.
|
||||
|
||||
A **tuple** means that we can "mix" as many structs as we like. Not just two
|
||||
like in above example.
|
||||
like in the example above.
|
||||
|
||||
`MixContexts` inspects the passed-in `type` fields and **composes a new struct
|
||||
type at comptime**! Have a look at its [source code](../src/middleware.zig).
|
||||
|
|
Loading…
Add table
Reference in a new issue