We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84366b6 commit 0016af5Copy full SHA for 0016af5
src/doc/book/ffi.md
@@ -580,7 +580,7 @@ However, the language provides a workaround.
580
581
As a special case, an `enum` is eligible for the "nullable pointer optimization" if it
582
contains exactly two variants, one of which contains no data and the other contains
583
-a single field of one of the non-nullable types listed above (or a struct containing such a type).
+a field of one of the non-nullable types listed above (or a struct containing such a type).
584
This means it is represented as a single pointer, and the non-data variant is represented as a
585
null pointer. This is called an "optimization", but unlike other optimizations it is guaranteed
586
to apply to eligible types.
0 commit comments