Fix trailing whitespace. Whoops!
This commit is contained in:
parent
e489eaa0c5
commit
1a5e73a82d
1 changed files with 5 additions and 5 deletions
|
|
@ -52,23 +52,23 @@
|
|||
//! use std::error::FromError;
|
||||
//! use std::{io, str};
|
||||
//! use std::fs::File;
|
||||
//!
|
||||
//!
|
||||
//! enum MyError { Io(io::Error), Utf8(str::Utf8Error), }
|
||||
//!
|
||||
//!
|
||||
//! impl FromError<io::Error> for MyError {
|
||||
//! fn from_error(err: io::Error) -> MyError { MyError::Io(err) }
|
||||
//! }
|
||||
//!
|
||||
//!
|
||||
//! impl FromError<str::Utf8Error> for MyError {
|
||||
//! fn from_error(err: str::Utf8Error) -> MyError { MyError::Utf8(err) }
|
||||
//! }
|
||||
//!
|
||||
//!
|
||||
//! #[allow(unused_variables)]
|
||||
//! fn open_and_map() -> Result<(), MyError> {
|
||||
//! let b = b"foo.txt";
|
||||
//! let s = try!(str::from_utf8(b));
|
||||
//! let f = try!(File::open(s));
|
||||
//!
|
||||
//!
|
||||
//! // do something interesting here...
|
||||
//! Ok(())
|
||||
//! }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue