about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2014-09-19 16:47:49 -0400
committerSteve Klabnik <steve@steveklabnik.com>2014-09-22 17:54:10 -0400
commit72c27aba9ca429d7c0a1741a8b63bbc1c8050faf (patch)
tree724b30c43a295facb4d5e0c3b929b97ab5c46c4f
parentf95958b526bcbf2e7e70a0f4eca4037bfd579aee (diff)
downloadrust-72c27aba9ca429d7c0a1741a8b63bbc1c8050faf.tar.gz
rust-72c27aba9ca429d7c0a1741a8b63bbc1c8050faf.zip
fix example
-rw-r--r--src/doc/reference.md7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 5c419982c05..ae1dbf3e302 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -2851,14 +2851,9 @@ Indices are zero-based, and may be of any integral type. Vector access is
 bounds-checked at run-time. When the check fails, it will put the task in a
 _failing state_.
 
-```{.ignore}
-# use std::task;
-# task::spawn(proc() {
-
+```{should-fail}
 ([1, 2, 3, 4])[0];
 (["a", "b"])[10]; // fails
-
-# })
 ```
 
 ### Unary operator expressions