Skip to content

Commit c77df38

Browse files
committed
---
yaml --- r: 148174 b: refs/heads/try2 c: 6f875c9 h: refs/heads/master v: v3
1 parent 77dc0a1 commit c77df38

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: 78a7676898d9f80ab540c6df5d4c9ce35bb50463
55
refs/heads/try: 519addf6277dbafccbb4159db4b710c37eaa2ec5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: 7fe8692d3347c4eabfad2fbbd8a336069102c63f
8+
refs/heads/try2: 6f875c96b3a27e7acb61e421ad667de76e4f0c57
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/doc/guide-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ A typical mutable container will implement at least `iter()`, `mut_iter()` and
130130
### Freezing
131131
132132
Unlike most other languages with external iterators, Rust has no *iterator
133-
invalidation*. As long as an iterator is still in scope, the compiler will prevent
133+
invalidation*. As long an iterator is still in scope, the compiler will prevent
134134
modification of the container through another handle.
135135
136136
~~~

branches/try2/src/librustdoc/lib.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
1+
// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
22
// file at the top-level directory of this distribution and at
33
// http://rust-lang.org/COPYRIGHT.
44
//
@@ -109,7 +109,13 @@ pub fn usage(argv0: &str) {
109109
}
110110

111111
pub fn main_args(args: &[~str]) -> int {
112-
let matches = groups::getopts(args.tail(), opts()).unwrap();
112+
let matches = match groups::getopts(args.tail(), opts()) {
113+
Ok(m) => m,
114+
Err(err) => {
115+
println(err.to_err_msg());
116+
return 1;
117+
}
118+
};
113119
if matches.opt_present("h") || matches.opt_present("help") {
114120
usage(args[0]);
115121
return 0;

0 commit comments

Comments
 (0)