Fix docs of compare_bytes
This commit is contained in:
parent
74fd001cda
commit
d44a5fd00b
@ -2733,7 +2733,7 @@ pub const fn ptr_guaranteed_cmp<T>(ptr: *const T, other: *const T) -> u8 {
|
||||
|
||||
/// 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