summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Gallant <jamslam@gmail.com>2016-11-06 19:48:49 -0500
committerAndrew Gallant <jamslam@gmail.com>2016-11-06 19:48:49 -0500
commit2e5c3c05e822d55f3752fc0f1765f128a5e3b4e1 (patch)
tree3f0584ed7c162c5384b24f9857afa5d0ef6027c2 /src
parent6884eea2f57cfb63e7fe7fb1d993345d430ef0bd (diff)
reword
Diffstat (limited to 'src')
-rw-r--r--src/search_stream.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search_stream.rs b/src/search_stream.rs
index 3b4b94d4..7a773918 100644
--- a/src/search_stream.rs
+++ b/src/search_stream.rs
@@ -552,8 +552,8 @@ impl InputBuffer {
// Rollover bytes from buf[keep_from..end] and update our various
// pointers. N.B. This could be done with the ptr::copy, but I haven't
// been able to produce a benchmark that notices a difference in
- // performance. (Invariably, ptr::copy is seems clearer IMO, but it's
- // unsafe.)
+ // performance. (Invariably, ptr::copy is seems clearer IMO, but it is
+ // not safe.)
self.tmp.clear();
self.tmp.extend_from_slice(&self.buf[keep_from..self.end]);
self.buf[0..self.tmp.len()].copy_from_slice(&self.tmp);