Skip to content

Commit 0016af5

Browse files
committed
not just a single field
1 parent 84366b6 commit 0016af5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ However, the language provides a workaround.
580580

581581
As a special case, an `enum` is eligible for the "nullable pointer optimization" if it
582582
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).
583+
a field of one of the non-nullable types listed above (or a struct containing such a type).
584584
This means it is represented as a single pointer, and the non-data variant is represented as a
585585
null pointer. This is called an "optimization", but unlike other optimizations it is guaranteed
586586
to apply to eligible types.

0 commit comments

Comments
 (0)