]> git.lizzy.rs Git - rust.git/commit
Resolve unused_parens compilation warning
authorRobert Gardner <rhg259@nyu.edu>
Wed, 14 Oct 2015 21:38:56 +0000 (17:38 -0400)
committerRobert Gardner <rhg259@nyu.edu>
Wed, 14 Oct 2015 21:38:56 +0000 (17:38 -0400)
commitc8b6c125d4e13ec3f9b3d49ce17ca24b12b25ab9
tree4edd7d05135ab81b4048b0018683a27027ddd141
parent56a14192e9793a06b33fa11210765d2118a228d9
Resolve unused_parens compilation warning

Before this commit, the first "A Rust library" code sample produced
the following compilation warning:
```
test.rs:7:22: 7:36 warning: unnecessary parentheses around `for` head
expression, #[warn(unused_parens)] on by default
test.rs:7             for _ in (0..5_000_000) {
```

This commit just removes the parens around the range 0..5_000_000.
src/doc/trpl/rust-inside-other-languages.md