about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2016-11-08 16:20:56 -0500
committerGitHub <noreply@github.com>2016-11-08 16:20:56 -0500
commitb2db5b9ffa87cffc28a53ac9d029f476758db039 (patch)
tree58403bc0b9768b9cc7718b2ea66cef64175594c6
parent8fd202615f3ba5b4ed467c2841c1ebeccff57c48 (diff)
parent635ed480b9f497a0b7d29f2ca970014e122918d0 (diff)
Rollup merge of #37425 - polo-language:doc, r=GuillaumeGomez
Add error note to illegal code snippet

Mark intentionally invalid code snippet in documentation as such with a comment. Similar comments used elsewhere in this file.

r? @steveklabnik
-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,
 }
 ```