diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2024-09-22 19:19:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-22 19:19:14 +0200 |
| commit | cbf23960eaf676b9163969337bff0d58c6f597d5 (patch) | |
| tree | 77804f7dccf211b65bd37e9844e6d56428d3d68d | |
| parent | 0af7f0f4c4bdec179f42d0db4ec322040582de9d (diff) | |
| parent | d44a5fd00b63b91569ac5812c12833a440f1e698 (diff) | |
| download | rust-cbf23960eaf676b9163969337bff0d58c6f597d5.tar.gz rust-cbf23960eaf676b9163969337bff0d58c6f597d5.zip | |
Rollup merge of #130658 - EqualMa:patch-1, r=scottmcm
Fix docs of compare_bytes The docs of `compare_bytes`. The return value is positive if <del>`right`</del> `left` is greater
| -rw-r--r-- | library/core/src/intrinsics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 7870a62ea81..3b2a6e820c6 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -2733,7 +2733,7 @@ extern "rust-intrinsic" { /// Lexicographically compare `[left, left + bytes)` and `[right, right + bytes)` /// as unsigned bytes, returning negative if `left` is less, zero if all the - /// bytes match, or positive if `right` is greater. + /// bytes match, or positive if `left` is greater. /// /// This underlies things like `<[u8]>::cmp`, and will usually lower to `memcmp`. /// |
