8000 Improve comment · ghcom275/unicode-normalization@da94023 · GitHub
[go: up one dir, main page]

Skip to content

Commit da94023

Browse files
committed
Improve comment
1 parent a3fcd13 commit da94023

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/decompose.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ impl<I> Decompositions<I> {
7878

7979
#[inline]
8080
fn reset_buffer(&mut self) {
81-
// Equivalent to `self.buffer.drain(0..self.ready.end)` (if SmallVec
82-
// supported this API)
81+
// Equivalent to `self.buffer.drain(0..self.ready.end)`
82+
// but faster than drain() if the buffer is a SmallVec or TinyVec
8383
let pending = self.buffer.len() - self.ready.end;
8484
for i in 0..pending {
8585
self.buffer[i] = self.buffer[i + self.ready.end];

0 commit comments

Comments
 (0)
0