1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2025-10-20 15:14:08 +00:00

doc fixes

This commit is contained in:
Rene Schallner 2023-05-19 03:17:00 +02:00
parent 6f7e2f89fb
commit d0424d0d49

View file

@ -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).