about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-16 17:02:11 +0000
committerbors <bors@rust-lang.org>2015-03-16 17:02:11 +0000
commitbde09eea35113f25d4e0bcc4a8344de971f3069a (patch)
tree91bf41d6d8d7630d193f517d0f22c9fe85e4f967 /src/libstd/sys
parentcc789193e11ab2d864db3186aa1961283b3d4cdc (diff)
parent1d5983aded687149239e8943debd51abdce5d27b (diff)
downloadrust-bde09eea35113f25d4e0bcc4a8344de971f3069a.tar.gz
rust-bde09eea35113f25d4e0bcc4a8344de971f3069a.zip
Auto merge of #23347 - aturon:stab-misc, r=alexcrichton
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]

r? @alexcrichton 
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/os.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/os.rs b/src/libstd/sys/unix/os.rs
index e7699bbdb38..75aeafe6e3c 100644
--- a/src/libstd/sys/unix/os.rs
+++ b/src/libstd/sys/unix/os.rs
@@ -286,7 +286,7 @@ pub fn args() -> Args {
     let vec = unsafe {
         let (argc, argv) = (*_NSGetArgc() as isize,
                             *_NSGetArgv() as *const *const c_char);
-        range(0, argc as isize).map(|i| {
+        (0.. argc as isize).map(|i| {
             let bytes = CStr::from_ptr(*argv.offset(i)).to_bytes().to_vec();
             OsStringExt::from_vec(bytes)
         }).collect::<Vec<_>>()