Skip to content

Commit c76456c

Browse files
authored
Rollup merge of #58005 - vitiral:docs_trim_start_matches, r=Manishearth
update docs for fix_start/end_matches fixes #57686:
2 parents 880f633 + 4a3caca commit c76456c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/libcore/str/mod.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -3786,10 +3786,10 @@ impl str {
37863786
///
37873787
/// # Text directionality
37883788
///
3789-
/// A string is a sequence of bytes. 'Left' in this context means the first
3790-
/// position of that byte string; for a language like Arabic or Hebrew
3791-
/// which are 'right to left' rather than 'left to right', this will be
3792-
/// the _right_ side, not the left.
3789+
/// A string is a sequence of bytes. `start` in this context means the first
3790+
/// position of that byte string; for a left-to-right language like English or
3791+
/// Russian, this will be left side; and for right-to-left languages like
3792+
/// like Arabic or Hebrew, this will be the right side.
37933793
///
37943794
/// # Examples
37953795
///
@@ -3818,10 +3818,10 @@ impl str {
38183818
///
38193819
/// # Text directionality
38203820
///
3821-
/// A string is a sequence of bytes. 'Right' in this context means the last
3822-
/// position of that byte string; for a language like Arabic or Hebrew
3823-
/// which are 'right to left' rather than 'left to right', this will be
3824-
/// the _left_ side, not the right.
3821+
/// A string is a sequence of bytes. `end` in this context means the last
3822+
/// position of that byte string; for a left-to-right language like English or
3823+
/// Russian, this will be right side; and for right-to-left languages like
3824+
/// like Arabic or Hebrew, this will be the left side.
38253825
///
38263826
/// # Examples
38273827
///

0 commit comments

Comments
 (0)