Skip to content

Commit

Permalink
Merge pull request #744 from Carreau/patch-1
Browse files Browse the repository at this point in the history
Update example to use Result<User, Box<dyn Error>>
  • Loading branch information
dtolnay authored Jan 10, 2021
2 parents 44d7fe3 + 418507e commit 7ff8ec6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2432,7 +2432,7 @@ where
/// location: String,
/// }
///
/// fn read_user_from_file<P: AsRef<Path>>(path: P) -> Result<User, Box<Error>> {
/// fn read_user_from_file<P: AsRef<Path>>(path: P) -> Result<User, Box<dyn Error>> {
/// // Open the file in read-only mode with buffer.
/// let file = File::open(path)?;
/// let reader = BufReader::new(file);
Expand Down

0 comments on commit 7ff8ec6

Please sign in to comment.