@@ -271,7 +271,7 @@ impl<T> Option<T> {
271
271
pub fn get_ref < ' a > ( & ' a self ) -> & ' a T {
272
272
match * self {
273
273
Some ( ref x) => x,
274
- None => fail ! ( "option::get_ref None" )
274
+ None => fail ! ( "option::get_ref ` None`" ) ,
275
275
}
276
276
}
277
277
@@ -293,7 +293,7 @@ impl<T> Option<T> {
293
293
pub fn get_mut_ref < ' a > ( & ' a mut self ) -> & ' a mut T {
294
294
match * self {
295
295
Some ( ref mut x) => x,
296
- None => fail ! ( "option::get_mut_ref None" )
296
+ None => fail ! ( "option::get_mut_ref ` None`" ) ,
297
297
}
298
298
}
299
299
@@ -317,7 +317,7 @@ impl<T> Option<T> {
317
317
*/
318
318
match self {
319
319
Some ( x) => x,
320
- None => fail ! ( "option::unwrap None" )
320
+ None => fail ! ( "option::unwrap ` None`" ) ,
321
321
}
322
322
}
323
323
@@ -331,7 +331,7 @@ impl<T> Option<T> {
331
331
*/
332
332
#[ inline]
333
333
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` " ) }
335
335
self . take ( ) . unwrap ( )
336
336
}
337
337
@@ -369,7 +369,7 @@ impl<T> Option<T> {
369
369
pub fn get ( self ) -> T {
370
370
match self {
371
371
Some ( x) => return x,
372
- None => fail ! ( "option::get None" )
372
+ None => fail ! ( "option::get ` None` " )
373
373
}
374
374
}
375
375
@@ -379,7 +379,7 @@ impl<T> Option<T> {
379
379
match self { Some ( x) => x, None => def }
380
380
}
381
381
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` .
383
383
#[ inline]
384
384
pub fn while_some ( self , blk : & fn ( v : T ) -> Option < T > ) {
385
385
let mut opt = self ;
0 commit comments