File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ declare_clippy_lint! {
6565 ///
6666 /// **Why is this bad?** `result.unwrap()` will let the thread panic on `Err`
6767 /// values. Normally, you want to implement more sophisticated error handling,
68- /// and propagate errors upwards with `try!` .
68+ /// and propagate errors upwards with `?` operator .
6969 ///
7070 /// Even if you want to panic on errors, not all `Error`s implement good
7171 /// messages on display. Therefore, it may be beneficial to look at the places
@@ -127,7 +127,7 @@ declare_clippy_lint! {
127127 ///
128128 /// **Why is this bad?** `result.expect()` will let the thread panic on `Err`
129129 /// values. Normally, you want to implement more sophisticated error handling,
130- /// and propagate errors upwards with `try!` .
130+ /// and propagate errors upwards with `?` operator .
131131 ///
132132 /// **Known problems:** None.
133133 ///
Original file line number Diff line number Diff line change @@ -15,18 +15,18 @@ declare_clippy_lint! {
1515 ///
1616 /// **Example:**
1717 /// ```ignore
18- /// for result in iter {
19- /// if let Some(bench ) = try!(result) .parse().ok() {
20- /// vec.push(bench )
18+ /// for i in iter {
19+ /// if let Some(value ) = i .parse().ok() {
20+ /// vec.push(value )
2121 /// }
2222 /// }
2323 /// ```
2424 /// Could be written:
2525 ///
2626 /// ```ignore
27- /// for result in iter {
28- /// if let Ok(bench ) = try!(result) .parse() {
29- /// vec.push(bench )
27+ /// for i in iter {
28+ /// if let Ok(value ) = i .parse() {
29+ /// vec.push(value )
3030 /// }
3131 /// }
3232 /// ```
You can’t perform that action at this time.
0 commit comments