Skip to content

Commit b2ce5b8

Browse files
committed
---
yaml --- r: 42091 b: refs/heads/master c: 1b021d5 h: refs/heads/master i: 42089: f812f58 42087: 60c922d v: v3
1 parent 3e37c5a commit b2ce5b8

File tree

3 files changed

+33
-3
lines changed

3 files changed

+33
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f8c26525ea94e7e1d207e0ba66c82a5e2e8f6243
2+
refs/heads/master: 1b021d5868411341b969bfb684c7f1892cb7e092
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
55
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650

trunk/src/libcore/hashmap.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,8 +219,8 @@ pub mod linear {
219219
},
220220
};
221221

222-
/* re-inserting buckets may cause changes in size, so remember what
223-
our new size is ahead of time before we start insertions */
222+
/* re-inserting buckets may cause changes in size, so remember
223+
what our new size is ahead of time before we start insertions */
224224
let size = self.size - 1;
225225
idx = self.next_bucket(idx, len_buckets);
226226
while self.buckets[idx].is_some() {

trunk/src/test/run-pass/issue-4541.rs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
2+
// file at the top-level directory of this distribution and at
3+
// http://rust-lang.org/COPYRIGHT.
4+
//
5+
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6+
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7+
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8+
// option. This file may not be copied, modified, or distributed
9+
// except according to those terms.
10+
11+
fn parse_args() -> ~str {
12+
let args = core::os::args();
13+
let mut n = 0;
14+
15+
while n < args.len() {
16+
match copy args[n] {
17+
~"-v" => (),
18+
s => {
19+
return s;
20+
}
21+
}
22+
n += 1;
23+
}
24+
25+
return ~""
26+
}
27+
28+
fn main() {
29+
io::println(parse_args());
30+
}

0 commit comments

Comments
 (0)