Skip to content

Commit a36a803

Browse files
authored
Rollup merge of rust-lang#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 e57be41 + b5b4428 commit a36a803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/ops/range.rs

Lines changed: 1 addition & 1 deletion
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)