about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorAngelo Polo <polo.language@gmail.com>2016-10-26 21:13:31 -0400
committerAngelo Polo <polo.language@gmail.com>2016-11-03 09:08:13 -0400
commit635ed480b9f497a0b7d29f2ca970014e122918d0 (patch)
treec2084b74cbe7cb8a601811d4f43adcdefeecf1e6 /src/doc
parent3a25b65c1fbdd6101b77e8a8b06a5e42d775dc3f (diff)
Add error note to illegal code snippet
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/book/structs.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/book/structs.md b/src/doc/book/structs.md
index 328db25b819..d6960b10b08 100644
--- a/src/doc/book/structs.md
+++ b/src/doc/book/structs.md
@@ -61,7 +61,7 @@ write something like this:
 
 ```rust,ignore
 struct Point {
-    mut x: i32,
+    mut x: i32, // This causes an error.
     y: i32,
 }
 ```