Skip to content

Commit 50aea92

Browse files
authored
Rollup merge of #115279 - schuelermine:patch/doc/RangeFull/remote-parens, 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.
2 parents 2a1af89 + 2a270a0 commit 50aea92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/ops/range.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::hash::Hash;
1111
/// The `..` syntax is a `RangeFull`:
1212
///
1313
/// ```
14-
/// assert_eq!((..), std::ops::RangeFull);
14+
/// assert_eq!(.., std::ops::RangeFull);
1515
/// ```
1616
///
1717
/// It does not have an [`IntoIterator`] implementation, so you can't use it in

0 commit comments

Comments
 (0)