Skip to content

Commit 6e9a80e

Browse files
Rollup merge of #62327 - Flast:patch-1, r=Mark-Simulacrum
Fixed document bug, those replaced each other Originally reported by #57686, introduced by #58005
2 parents 1ad66ed + e5ede80 commit 6e9a80e

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/libcore/str/mod.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -3716,10 +3716,10 @@ impl str {
37163716
///
37173717
/// # Text directionality
37183718
///
3719-
/// A string is a sequence of bytes. 'Left' in this context means the first
3720-
/// position of that byte string; for a language like Arabic or Hebrew
3721-
/// which are 'right to left' rather than 'left to right', this will be
3722-
/// the _right_ side, not the left.
3719+
/// A string is a sequence of bytes. `start` in this context means the first
3720+
/// position of that byte string; for a left-to-right language like English or
3721+
/// Russian, this will be left side, and for right-to-left languages like
3722+
/// like Arabic or Hebrew, this will be the right side.
37233723
///
37243724
/// # Examples
37253725
///
@@ -3755,10 +3755,10 @@ impl str {
37553755
///
37563756
/// # Text directionality
37573757
///
3758-
/// A string is a sequence of bytes. 'Right' in this context means the last
3759-
/// position of that byte string; for a language like Arabic or Hebrew
3760-
/// which are 'right to left' rather than 'left to right', this will be
3761-
/// the _left_ side, not the right.
3758+
/// A string is a sequence of bytes. `end` in this context means the last
3759+
/// position of that byte string; for a left-to-right language like English or
3760+
/// Russian, this will be right side, and for right-to-left languages like
3761+
/// like Arabic or Hebrew, this will be the left side.
37623762
///
37633763
/// # Examples
37643764
///
@@ -3804,10 +3804,10 @@ impl str {
38043804
///
38053805
/// # Text directionality
38063806
///
3807-
/// A string is a sequence of bytes. `start` in this context means the first
3808-
/// position of that byte string; for a left-to-right language like English or
3809-
/// Russian, this will be left side, and for right-to-left languages like
3810-
/// like Arabic or Hebrew, this will be the right side.
3807+
/// A string is a sequence of bytes. 'Left' in this context means the first
3808+
/// position of that byte string; for a language like Arabic or Hebrew
3809+
/// which are 'right to left' rather than 'left to right', this will be
3810+
/// the _right_ side, not the left.
38113811
///
38123812
/// # Examples
38133813
///
@@ -3840,10 +3840,10 @@ impl str {
38403840
///
38413841
/// # Text directionality
38423842
///
3843-
/// A string is a sequence of bytes. `end` in this context means the last
3844-
/// position of that byte string; for a left-to-right language like English or
3845-
/// Russian, this will be right side, and for right-to-left languages like
3846-
/// like Arabic or Hebrew, this will be the left side.
3843+
/// A string is a sequence of bytes. 'Right' in this context means the last
3844+
/// position of that byte string; for a language like Arabic or Hebrew
3845+
/// which are 'right to left' rather than 'left to right', this will be
3846+
/// the _left_ side, not the right.
38473847
///
38483848
/// # Examples
38493849
///

0 commit comments

Comments
 (0)