Skip to content

Commit 998896c

Browse files
committed
Clarify rotate_{left,right} docs
I wondered what the `<<!` operator is although the exclamation mark was only the end of the sentence.
1 parent ea43c3c commit 998896c

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/libcore/num/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ $EndFeature, "
346346
concat!("Shifts the bits to the left by a specified amount, `n`,
347347
wrapping the truncated bits to the end of the resulting integer.
348348
349-
Please note this isn't the same operation as `<<`!
349+
Please note this isn't the same operation as the `<<` shifting operator!
350350
351351
# Examples
352352
@@ -370,7 +370,7 @@ assert_eq!(n.rotate_left(", $rot, "), m);
370370
wrapping the truncated bits to the beginning of the resulting
371371
integer.
372372
373-
Please note this isn't the same operation as `>>`!
373+
Please note this isn't the same operation as the `>>` shifting operator!
374374
375375
# Examples
376376
@@ -2300,7 +2300,7 @@ assert_eq!(n.trailing_zeros(), 3);", $EndFeature, "
23002300
concat!("Shifts the bits to the left by a specified amount, `n`,
23012301
wrapping the truncated bits to the end of the resulting integer.
23022302
2303-
Please note this isn't the same operation as `<<`!
2303+
Please note this isn't the same operation as the `<<` shifting operator!
23042304
23052305
# Examples
23062306
@@ -2324,7 +2324,7 @@ assert_eq!(n.rotate_left(", $rot, "), m);
23242324
wrapping the truncated bits to the beginning of the resulting
23252325
integer.
23262326
2327-
Please note this isn't the same operation as `>>`!
2327+
Please note this isn't the same operation as the `>>` shifting operator!
23282328
23292329
# Examples
23302330

src/libcore/num/wrapping.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,8 @@ assert_eq!(n.trailing_zeros(), 3);
429429
/// wrapping the truncated bits to the end of the resulting
430430
/// integer.
431431
///
432-
/// Please note this isn't the same operation as `>>`!
432+
/// Please note this isn't the same operation as the `>>` shifting
433+
/// operator!
433434
///
434435
/// # Examples
435436
///
@@ -454,7 +455,8 @@ assert_eq!(n.trailing_zeros(), 3);
454455
/// wrapping the truncated bits to the beginning of the resulting
455456
/// integer.
456457
///
457-
/// Please note this isn't the same operation as `<<`!
458+
/// Please note this isn't the same operation as the `<<` shifting
459+
/// operator!
458460
///
459461
/// # Examples
460462
///

0 commit comments

Comments
 (0)