Skip to content

Commit fb5e63f

Browse files
authored
Change try! to ?
1 parent 64cd0be commit fb5e63f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/str/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pub mod pattern;
5858
/// .split(",")
5959
/// .collect();
6060
///
61-
/// let x_fromstr = try!(coords[0].parse::<i32>());
62-
/// let y_fromstr = try!(coords[1].parse::<i32>());
61+
/// let x_fromstr = coords[0].parse::<i32>()?;
62+
/// let y_fromstr = coords[1].parse::<i32>()?;
6363
///
6464
/// Ok(Point { x: x_fromstr, y: y_fromstr })
6565
/// }

0 commit comments

Comments
 (0)