diff options
| author | Graydon Hoare <[email protected]> | 2010-09-22 14:48:13 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-09-22 15:27:35 -0700 |
| commit | fc6f307787c7533e33269cc2c7a9cb878f5bf69a (patch) | |
| tree | f209c44e5878d46ad1d8e60edd51eb9d517c8fd5 /src/test/run-pass | |
| parent | Make deps via temps, to avoid syntax errors wedging deps. (diff) | |
| download | rust-fc6f307787c7533e33269cc2c7a9cb878f5bf69a.tar.xz rust-fc6f307787c7533e33269cc2c7a9cb878f5bf69a.zip | |
Fix linear for loops on strings to not hit trailing null.
Diffstat (limited to 'src/test/run-pass')
| -rw-r--r-- | src/test/run-pass/linear-for-loop.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/test/run-pass/linear-for-loop.rs b/src/test/run-pass/linear-for-loop.rs index 8bb1a5d9..2b517f78 100644 --- a/src/test/run-pass/linear-for-loop.rs +++ b/src/test/run-pass/linear-for-loop.rs @@ -27,12 +27,9 @@ fn main() { check (c == ('o' as u8)); } // ... - if (i == 12) { - check (c == (0 as u8)); - } i += 1; log i; log c; } - check(i == 12); + check(i == 11); } |