From d0424d0d4929316a1fc97837e501d41d8ef462df Mon Sep 17 00:00:00 2001 From: Rene Schallner Date: Fri, 19 May 2023 03:17:00 +0200 Subject: [PATCH] doc fixes --- doc/zig-ception.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/zig-ception.md b/doc/zig-ception.md index babe587..35115b6 100644 --- a/doc/zig-ception.md +++ b/doc/zig-ception.md @@ -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).