Skip to content

Commit f8f9b02

Browse files
committed
fix weird wording
1 parent c0315d0 commit f8f9b02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/stringtheory/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,8 +359,8 @@ impl DiscriminantUnion {
359359
/// 1. Only used on 64-bit little-endian platforms. (checked at compile-time via _INVARIANTS_CHECK)
360360
/// 2. The data pointers for `String` and `&'static str` can't ever be null when the strings are non-empty.
361361
/// 3. Allocations can never be larger than `isize::MAX` (see [here][rust_isize_alloc_limit]), meaning that any
362-
/// length/capacity field for a string can't ever be larger than `isize::MAX`, implying the sixty-fourth bit (top-most bit)
363-
/// for length/capacity should always be 0.
362+
/// length/capacity field for a string can't ever be larger than `isize::MAX`, implying the highest bit for
363+
/// length/capacity should always be 0.
364364
/// 4. An inlined string can only hold up to 23 bytes of data, meaning that the length byte for that string can never
365365
/// have a value greater than 23. (_We_ have to provide this invariant, which is handled in `Inner::try_inlined`.)
366366
///

0 commit comments

Comments
 (0)