Skip to content

Commit

Permalink
Rollup merge of #115279 - schuelermine:patch/doc/RangeFull/remote-par…
Browse files Browse the repository at this point in the history
…ens, r=Mark-Simulacrum

RangeFull: Remove parens around .. in documentation snippet

I’ve removed unnecessary parentheses in a documentation snippet documenting `RangeFull`. It could’ve lead people to believe the parentheses were necessary.
  • Loading branch information
matthiaskrgr authored Sep 3, 2023
2 parents 2a1af89 + 2a270a0 commit 50aea92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/ops/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use crate::hash::Hash;
/// The `..` syntax is a `RangeFull`:
///
/// ```
/// assert_eq!((..), std::ops::RangeFull);
/// assert_eq!(.., std::ops::RangeFull);
/// ```
///
/// It does not have an [`IntoIterator`] implementation, so you can't use it in
Expand Down

0 comments on commit 50aea92

Please sign in to comment.