diff options
| author | Samuel Tardieu <sam@rfc1149.net> | 2025-08-26 23:25:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-26 23:25:06 +0200 |
| commit | cefa84aeac6eafe0593fa2dae8b26a56606addea (patch) | |
| tree | a03a49887961623e55158cd3aa566f9e8948a5b2 | |
| parent | fe5890e481df7d2a617cca07522ccecb175a17b7 (diff) | |
| parent | 45296bb633bc7fdd0c692a8be3035393ec3c9314 (diff) | |
| download | rust-cefa84aeac6eafe0593fa2dae8b26a56606addea.tar.gz rust-cefa84aeac6eafe0593fa2dae8b26a56606addea.zip | |
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).
| -rw-r--r-- | library/alloc/src/raw_vec/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/raw_vec/mod.rs b/library/alloc/src/raw_vec/mod.rs index 40716755aad..fd05f9ca464 100644 --- a/library/alloc/src/raw_vec/mod.rs +++ b/library/alloc/src/raw_vec/mod.rs @@ -155,7 +155,7 @@ impl RawVecInner<Global> { } // Tiny Vecs are dumb. Skip to: -// - 8 if the element size is 1, because any heap allocators is likely +// - 8 if the element size is 1, because any heap allocator is likely // to round up a request of less than 8 bytes to at least 8 bytes. // - 4 if elements are moderate-sized (<= 1 KiB). // - 1 otherwise, to avoid wasting too much space for very short Vecs. |
