diff options
Diffstat (limited to 'src/doc/guide-testing.md')
| -rw-r--r-- | src/doc/guide-testing.md | 2 |
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]; } ~~~ |
