Skip to content

Commit 7ff8ec6

Browse files
authored
Merge pull request #744 from Carreau/patch-1
Update example to use Result<User, Box<dyn Error>>
2 parents 44d7fe3 + 418507e commit 7ff8ec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/de.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2432,7 +2432,7 @@ where
24322432
/// location: String,
24332433
/// }
24342434
///
2435-
/// fn read_user_from_file<P: AsRef<Path>>(path: P) -> Result<User, Box<Error>> {
2435+
/// fn read_user_from_file<P: AsRef<Path>>(path: P) -> Result<User, Box<dyn Error>> {
24362436
/// // Open the file in read-only mode with buffer.
24372437
/// let file = File::open(path)?;
24382438
/// let reader = BufReader::new(file);

0 commit comments

Comments
 (0)