Skip to content

Commit e41f65b

Browse files
committed
---
yaml --- r: 143330 b: refs/heads/try2 c: 03a16db h: refs/heads/master v: v3
1 parent aa2b4a9 commit e41f65b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
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: 2a68c719f4a32123fbd428fe280f41af47d00fea
8+
refs/heads/try2: 03a16dbb8e6341e622f7d09c9be99ec5502239f3
99
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503

branches/try2/src/libstd/option.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ impl<T> Option<T> {
271271
pub fn get_ref<'a>(&'a self) -> &'a T {
272272
match *self {
273273
Some(ref x) => x,
274-
None => fail!("option::get_ref None")
274+
None => fail!("option::get_ref `None`"),
275275
}
276276
}
277277

@@ -293,7 +293,7 @@ impl<T> Option<T> {
293293
pub fn get_mut_ref<'a>(&'a mut self) -> &'a mut T {
294294
match *self {
295295
Some(ref mut x) => x,
296-
None => fail!("option::get_mut_ref None")
296+
None => fail!("option::get_mut_ref `None`"),
297297
}
298298
}
299299

@@ -317,7 +317,7 @@ impl<T> Option<T> {
317317
*/
318318
match self {
319319
Some(x) => x,
320-
None => fail!("option::unwrap None")
320+
None => fail!("option::unwrap `None`"),
321321
}
322322
}
323323

@@ -331,7 +331,7 @@ impl<T> Option<T> {
331331
*/
332332
#[inline]
333333
pub fn take_unwrap(&mut self) -> T {
334-
if self.is_none() { fail!("option::take_unwrap None") }
334+
if self.is_none() { fail!("option::take_unwrap `None`") }
335335
self.take().unwrap()
336336
}
337337

@@ -369,7 +369,7 @@ impl<T> Option<T> {
369369
pub fn get(self) -> T {
370370
match self {
371371
Some(x) => return x,
372-
None => fail!("option::get None")
372+
None => fail!("option::get `None`")
373373
}
374374
}
375375

@@ -379,7 +379,7 @@ impl<T> Option<T> {
379379
match self { Some(x) => x, None => def }
380380
}
381381

382-
/// Applies a function zero or more times until the result is None.
382+
/// Applies a function zero or more times until the result is `None`.
383383
#[inline]
384384
pub fn while_some(self, blk: &fn(v: T) -> Option<T>) {
385385
let mut opt = self;

0 commit comments

Comments
 (0)