Skip to content

Commit fc0cd8f

Browse files
author
Antoine Dupuis
committed
Switch comment style to //
1 parent d5cae8f commit fc0cd8f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

solutions/13_error_handling/errors6.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ impl ParsePosNonzeroError {
2929
}
3030
}
3131

32-
/// As an alternative solution, implementing the `From` trait allows for the
33-
/// automatic conversion from a `ParseIntError` into a `ParsePosNonzeroError`
34-
/// using the `?` operator, without the need to call `map_err`.
35-
///
36-
/// ```
37-
/// let x: i64 = s.parse()?;
38-
/// ```
39-
///
40-
/// Traits like `From` will be dealt with in later exercises.
32+
// As an alternative solution, implementing the `From` trait allows for the
33+
// automatic conversion from a `ParseIntError` into a `ParsePosNonzeroError`
34+
// using the `?` operator, without the need to call `map_err`.
35+
//
36+
// ```
37+
// let x: i64 = s.parse()?;
38+
// ```
39+
//
40+
// Traits like `From` will be dealt with in later exercises.
4141
impl From<ParseIntError> for ParsePosNonzeroError {
4242
fn from(err: ParseIntError) -> Self {
4343
ParsePosNonzeroError::ParseInt(err)

0 commit comments

Comments
 (0)