about summary refs log tree commit diff
path: root/clippy_lints/src/utils
diff options
context:
space:
mode:
authorEduardo Broto <ebroto@tutanota.com>2020-06-07 00:30:39 +0200
committerEduardo Broto <ebroto@tutanota.com>2020-06-07 20:53:38 +0200
commitdac8a3c1ca19d2b5934ecbe2ed79ae6c156fd885 (patch)
tree26697ecac71b095e186ce0b6b6590ee525bc015e /clippy_lints/src/utils
parent9c205d7b1baa982ae7063d57b18088ecf28df83b (diff)
let_and_return: do not lint if last statement borrows
Diffstat (limited to 'clippy_lints/src/utils')
-rw-r--r--clippy_lints/src/utils/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/utils/mod.rs b/clippy_lints/src/utils/mod.rs
index 06638e7187b..39410acea4e 100644
--- a/clippy_lints/src/utils/mod.rs
+++ b/clippy_lints/src/utils/mod.rs
@@ -400,7 +400,7 @@ pub fn method_calls<'tcx>(
 /// Matches an `Expr` against a chain of methods, and return the matched `Expr`s.
 ///
 /// For example, if `expr` represents the `.baz()` in `foo.bar().baz()`,
-/// `matched_method_chain(expr, &["bar", "baz"])` will return a `Vec`
+/// `method_chain_args(expr, &["bar", "baz"])` will return a `Vec`
 /// containing the `Expr`s for
 /// `.bar()` and `.baz()`
 pub fn method_chain_args<'a>(expr: &'a Expr<'_>, methods: &[&str]) -> Option<Vec<&'a [Expr<'a>]>> {