Skip to content

Commit 232a483

Browse files
authored
more consistent use of terminology; trait > syntax
1 parent 061a483 commit 232a483

File tree

1 file changed

+3
-3
lines changed
  • clippy_lints/src/methods

1 file changed

+3
-3
lines changed

clippy_lints/src/methods/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -569,13 +569,13 @@ declare_clippy_lint! {
569569
/// concise.
570570
///
571571
/// **Known problems:** Not a replacement for error handling: Using either
572-
/// `.unwrap()` or the Index syntax (`[]`) carries the risk of causing a `panic`
572+
/// `.unwrap()` or the Index trait (`[]`) carries the risk of causing a `panic`
573573
/// if the value being accessed is `None`. If the use of `.get().unwrap()` is a
574574
/// temporary placeholder for dealing with the `Option` type, then this does
575575
/// not mitigate the need for error handling. If there is a chance that `.get()`
576576
/// will be `None` in your program, then it is advisable that the `None` case
577-
/// is eventually handled in a future refactor instead of using `.unwrap()`
578-
/// or the Index syntax.
577+
/// is handled in a future refactor instead of using `.unwrap()` or the Index
578+
/// trait.
579579
///
580580
/// **Example:**
581581
/// ```rust

0 commit comments

Comments
 (0)