Skip to content

Commit

Permalink
Rollup merge of rust-lang#130658 - EqualMa:patch-1, r=scottmcm
Browse files Browse the repository at this point in the history
Fix docs of compare_bytes

The docs of `compare_bytes`. The return value is positive if <del>`right`</del> `left` is greater
  • Loading branch information
GuillaumeGomez authored Sep 22, 2024
2 parents 9c26e05 + 49128a4 commit 202df81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
///
Expand Down

0 comments on commit 202df81

Please sign in to comment.