Skip to content

Commit cefa84a

Browse files
Rollup merge of #145901 - stoeckmann:raw_vec_typo, r=samueltardieu
Fix typo in comment of library/alloc/src/raw_vec/mod.rs Turn "any heap allocators" into "any heap allocator". Shoutout to [Let's Read OSS](https://github.com/stoeckmann/lets-read-oss).
2 parents fe5890e + 45296bb commit cefa84a

File tree

1 file changed

+1
-1
lines changed
  • library/alloc/src/raw_vec

1 file changed

+1
-1
lines changed

library/alloc/src/raw_vec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ impl RawVecInner<Global> {
155155
}
156156

157157
// Tiny Vecs are dumb. Skip to:
158-
// - 8 if the element size is 1, because any heap allocators is likely
158+
// - 8 if the element size is 1, because any heap allocator is likely
159159
// to round up a request of less than 8 bytes to at least 8 bytes.
160160
// - 4 if elements are moderate-sized (<= 1 KiB).
161161
// - 1 otherwise, to avoid wasting too much space for very short Vecs.

0 commit comments

Comments
 (0)