about summary refs log tree commit diff
path: root/src/doc/guide-testing.md
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc/guide-testing.md')
-rw-r--r--src/doc/guide-testing.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide-testing.md b/src/doc/guide-testing.md
index 4128ae9538b..a3bf810dde1 100644
--- a/src/doc/guide-testing.md
+++ b/src/doc/guide-testing.md
@@ -84,7 +84,7 @@ will be counted as a failure. For example:
 #[test]
 #[should_fail]
 fn test_out_of_bounds_failure() {
-    let v: &[int] = [];
+    let v: &[int] = &[];
     v[0];
 }
 ~~~