about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/doc/book/src/structs.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/doc/book/src/structs.md b/src/doc/book/src/structs.md
index 6b2a145c85e..b5fe99d0486 100644
--- a/src/doc/book/src/structs.md
+++ b/src/doc/book/src/structs.md
@@ -259,9 +259,10 @@ You can define a `struct` with no members at all:
 struct Electron {} // Use empty braces...
 struct Proton;     // ...or just a semicolon.
 
-// Whether you declared the struct with braces or not, do the same when creating one.
+// Use the same notation when creating an instance.
 let x = Electron {};
 let y = Proton;
+let z = Electron; // Error
 ```
 
 Such a `struct` is called ‘unit-like’ because it resembles the empty