File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments