about summary refs log tree commit diff
path: root/clippy_lints/src/methods
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-04 13:47:01 +0900
committerYuki Okushi <huyuumi.dev@gmail.com>2020-01-04 13:47:01 +0900
commit1102b87e3a2872ef7ced9aa0d3a38226f89e201b (patch)
treee34fe08e92e7919ab40680ed1769548b3f2dfd84 /clippy_lints/src/methods
parentfddc9801dd3aceedef0bb5694a5f2a5a827efea8 (diff)
downloadrust-1102b87e3a2872ef7ced9aa0d3a38226f89e201b.tar.gz
rust-1102b87e3a2872ef7ced9aa0d3a38226f89e201b.zip
Remove use of `try!` from documentation
Diffstat (limited to 'clippy_lints/src/methods')
-rw-r--r--clippy_lints/src/methods/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/clippy_lints/src/methods/mod.rs b/clippy_lints/src/methods/mod.rs
index 585c5560107..71eb2e250c7 100644
--- a/clippy_lints/src/methods/mod.rs
+++ b/clippy_lints/src/methods/mod.rs
@@ -65,7 +65,7 @@ declare_clippy_lint! {
     ///
     /// **Why is this bad?** `result.unwrap()` will let the thread panic on `Err`
     /// values. Normally, you want to implement more sophisticated error handling,
-    /// and propagate errors upwards with `try!`.
+    /// and propagate errors upwards with `?` operator.
     ///
     /// Even if you want to panic on errors, not all `Error`s implement good
     /// messages on display. Therefore, it may be beneficial to look at the places
@@ -127,7 +127,7 @@ declare_clippy_lint! {
     ///
     /// **Why is this bad?** `result.expect()` will let the thread panic on `Err`
     /// values. Normally, you want to implement more sophisticated error handling,
-    /// and propagate errors upwards with `try!`.
+    /// and propagate errors upwards with `?` operator.
     ///
     /// **Known problems:** None.
     ///