diff options
| author | Rett Berg <rett@google.com> | 2019-01-30 09:14:28 -0800 |
|---|---|---|
| committer | Rett Berg <rett@google.com> | 2019-01-30 10:12:49 -0800 |
| commit | 4a3caca978042b3d1f6700a5dce757414992a714 (patch) | |
| tree | 18ceb20da365cac8a02e69c0387b9d1a0f297991 /src/libcore/str | |
| parent | e4a9b5c623309dd707ee8188b09e55996c6beb9b (diff) | |
| download | rust-4a3caca978042b3d1f6700a5dce757414992a714.tar.gz rust-4a3caca978042b3d1f6700a5dce757414992a714.zip | |
fix #57686: update docs for fix_start/end_matches
Diffstat (limited to 'src/libcore/str')
| -rw-r--r-- | src/libcore/str/mod.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index ac920185636..a47ea8d2a46 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -3774,10 +3774,10 @@ impl str { /// /// # Text directionality /// - /// A string is a sequence of bytes. 'Left' in this context means the first - /// position of that byte string; for a language like Arabic or Hebrew - /// which are 'right to left' rather than 'left to right', this will be - /// the _right_ side, not the left. + /// A string is a sequence of bytes. `start` in this context means the first + /// position of that byte string; for a left-to-right language like English or + /// Russian, this will be left side; and for right-to-left languages like + /// like Arabic or Hebrew, this will be the right side. /// /// # Examples /// @@ -3806,10 +3806,10 @@ impl str { /// /// # Text directionality /// - /// A string is a sequence of bytes. 'Right' in this context means the last - /// position of that byte string; for a language like Arabic or Hebrew - /// which are 'right to left' rather than 'left to right', this will be - /// the _left_ side, not the right. + /// A string is a sequence of bytes. `end` in this context means the last + /// position of that byte string; for a left-to-right language like English or + /// Russian, this will be right side; and for right-to-left languages like + /// like Arabic or Hebrew, this will be the left side. /// /// # Examples /// |
