Skip to content

Commit 2f14db3

Browse files
author
Andrew Hobden
committed
---
yaml --- r: 195425 b: refs/heads/master c: 1a5e73a h: refs/heads/master i: 195423: c08580c v: v3
1 parent 2a7dc5e commit 2f14db3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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: e489eaa0c5fb4a9d8b716dc3fc63aa653c22f4ec
2+
refs/heads/master: 1a5e73a82d6a3e27804ac2f37d1f7dca62ecfc02
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: b3317d68910900f135f9f38e43a7a699bc736b4a
55
refs/heads/try: 961e0358e1a5c0faaef606e31e9965742c1643bf

trunk/src/libcore/error.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,23 +52,23 @@
5252
//! use std::error::FromError;
5353
//! use std::{io, str};
5454
//! use std::fs::File;
55-
//!
55+
//!
5656
//! enum MyError { Io(io::Error), Utf8(str::Utf8Error), }
57-
//!
57+
//!
5858
//! impl FromError<io::Error> for MyError {
5959
//! fn from_error(err: io::Error) -> MyError { MyError::Io(err) }
6060
//! }
61-
//!
61+
//!
6262
//! impl FromError<str::Utf8Error> for MyError {
6363
//! fn from_error(err: str::Utf8Error) -> MyError { MyError::Utf8(err) }
6464
//! }
65-
//!
65+
//!
6666
//! #[allow(unused_variables)]
6767
//! fn open_and_map() -> Result<(), MyError> {
6868
//! let b = b"foo.txt";
6969
//! let s = try!(str::from_utf8(b));
7070
//! let f = try!(File::open(s));
71-
//!
71+
//!
7272
//! // do something interesting here...
7373
//! Ok(())
7474
//! }

0 commit comments

Comments
 (0)