mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
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
This commit is contained in:
commit
cbf23960ea
@ -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`.
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user