diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-09-14 16:42:22 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-09-14 16:42:22 +0200 |
| commit | afc52916f658e7b5dc102ef7cd5b2784cd15c4e3 (patch) | |
| tree | 2cc0ee0da68aa5d26053b787ee42b11671fa490c /src/liballoc/raw_vec/tests.rs | |
| parent | 45baedb14b94ee26c70439e244b73ab3090a4d13 (diff) | |
| parent | 58a26c8fc0200c29bd753cf6fcfd80ee34a98920 (diff) | |
| download | rust-afc52916f658e7b5dc102ef7cd5b2784cd15c4e3.tar.gz rust-afc52916f658e7b5dc102ef7cd5b2784cd15c4e3.zip | |
Rollup merge of #64203 - alexreg:rush-pr-2, r=centril
A few cosmetic improvements to code & comments in liballoc and libcore Factored out from hacking on rustc for work on the REPL. r? @Centril
Diffstat (limited to 'src/liballoc/raw_vec/tests.rs')
| -rw-r--r-- | src/liballoc/raw_vec/tests.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/raw_vec/tests.rs b/src/liballoc/raw_vec/tests.rs index c389898d1ef..d35b62fc1ef 100644 --- a/src/liballoc/raw_vec/tests.rs +++ b/src/liballoc/raw_vec/tests.rs @@ -5,12 +5,12 @@ fn allocator_param() { use crate::alloc::AllocErr; // Writing a test of integration between third-party - // allocators and RawVec is a little tricky because the RawVec + // allocators and `RawVec` is a little tricky because the `RawVec` // API does not expose fallible allocation methods, so we // cannot check what happens when allocator is exhausted // (beyond detecting a panic). // - // Instead, this just checks that the RawVec methods do at + // Instead, this just checks that the `RawVec` methods do at // least go through the Allocator API when it reserves // storage. @@ -44,7 +44,7 @@ fn allocator_param() { fn reserve_does_not_overallocate() { { let mut v: RawVec<u32> = RawVec::new(); - // First `reserve` allocates like `reserve_exact` + // First, `reserve` allocates like `reserve_exact`. v.reserve(0, 9); assert_eq!(9, v.capacity()); } |
