Skip to content

Commit

Permalink
Change try! to ?
Browse files Browse the repository at this point in the history
  • Loading branch information
donniebishop authored Mar 25, 2017
1 parent 64cd0be commit fb5e63f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ pub mod pattern;
/// .split(",")
/// .collect();
///
/// let x_fromstr = try!(coords[0].parse::<i32>());
/// let y_fromstr = try!(coords[1].parse::<i32>());
/// let x_fromstr = coords[0].parse::<i32>()?;
/// let y_fromstr = coords[1].parse::<i32>()?;
///
/// Ok(Point { x: x_fromstr, y: y_fromstr })
/// }
Expand Down

0 comments on commit fb5e63f

Please sign in to comment.