diff options
| author | Corey Farwell <coreyf@rwell.org> | 2018-12-04 11:17:58 -0800 |
|---|---|---|
| committer | Corey Farwell <coreyf@rwell.org> | 2018-12-04 12:05:19 -0800 |
| commit | c025d6140999e07ddf0294f0676c64ff2322a210 (patch) | |
| tree | 51430da0c1c62d653d24db743ffd5e6f0d39bf8d /src/libstd/sys/windows | |
| parent | 431e0ab62f7730f11db693c23f48403e4c719f82 (diff) | |
| download | rust-c025d6140999e07ddf0294f0676c64ff2322a210.tar.gz rust-c025d6140999e07ddf0294f0676c64ff2322a210.zip | |
Replace usages of `..i + 1` ranges with `..=i`.
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/process.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/process.rs b/src/libstd/sys/windows/process.rs index ff1ee0d26fe..03c1bb54af8 100644 --- a/src/libstd/sys/windows/process.rs +++ b/src/libstd/sys/windows/process.rs @@ -487,7 +487,7 @@ fn make_command_line(prog: &OsStr, args: &[OsString]) -> io::Result<Vec<u16>> { } else { if x == '"' as u16 { // Add n+1 backslashes to total 2n+1 before internal '"'. - cmd.extend((0..(backslashes + 1)).map(|_| '\\' as u16)); + cmd.extend((0..=backslashes).map(|_| '\\' as u16)); } backslashes = 0; } |
