diff options
| author | Aaron Turon <aturon@mozilla.com> | 2015-03-13 11:35:53 -0700 |
|---|---|---|
| committer | Aaron Turon <aturon@mozilla.com> | 2015-03-13 14:45:13 -0700 |
| commit | 1d5983aded687149239e8943debd51abdce5d27b (patch) | |
| tree | 0ff9089b7e510e8d93c0c18e775ed315141d3b82 /src/libstd/net | |
| parent | ee7696383f3423cdd17373ff9e75c01acd8e3417 (diff) | |
| download | rust-1d5983aded687149239e8943debd51abdce5d27b.tar.gz rust-1d5983aded687149239e8943debd51abdce5d27b.zip | |
Deprecate range, range_step, count, distributions
This commit deprecates the `count`, `range` and `range_step` functions in `iter`, in favor of range notation. To recover all existing functionality, a new `step_by` adapter is provided directly on `ops::Range` and `ops::RangeFrom`. [breaking-change]
Diffstat (limited to 'src/libstd/net')
| -rw-r--r-- | src/libstd/net/ip.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/net/ip.rs b/src/libstd/net/ip.rs index d699886e577..c502a94ba69 100644 --- a/src/libstd/net/ip.rs +++ b/src/libstd/net/ip.rs @@ -359,7 +359,7 @@ impl fmt::Display for Ipv6Addr { let mut cur_span_len = 0; let mut cur_span_at = 0; - for i in range(0, 8) { + for i in 0..8 { if segments[i] == 0 { if cur_span_len == 0 { cur_span_at = i; |
