Skip to content

Commit

Permalink
Switch comment style to //
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Dupuis committed Nov 14, 2024
1 parent d5cae8f commit fc0cd8f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions solutions/13_error_handling/errors6.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ impl ParsePosNonzeroError {
}
}

/// As an alternative solution, implementing the `From` trait allows for the
/// automatic conversion from a `ParseIntError` into a `ParsePosNonzeroError`
/// using the `?` operator, without the need to call `map_err`.
///
/// ```
/// let x: i64 = s.parse()?;
/// ```
///
/// Traits like `From` will be dealt with in later exercises.
// As an alternative solution, implementing the `From` trait allows for the
// automatic conversion from a `ParseIntError` into a `ParsePosNonzeroError`
// using the `?` operator, without the need to call `map_err`.
//
// ```
// let x: i64 = s.parse()?;
// ```
//
// Traits like `From` will be dealt with in later exercises.
impl From<ParseIntError> for ParsePosNonzeroError {
fn from(err: ParseIntError) -> Self {
ParsePosNonzeroError::ParseInt(err)
Expand Down

0 comments on commit fc0cd8f

Please sign in to comment.