fix safety comment in spsc

Signed-off-by: Abhik Jain <abhikjain360@gmail.com>
This commit is contained in:
Abhik Jain 2021-07-29 20:15:50 +05:30
parent e7c4c7b1f2
commit 09192874ab
No known key found for this signature in database
GPG Key ID: D21FC5E2DBA12FC1

View File

@ -306,7 +306,7 @@ where
for s in self.iter() {
unsafe {
// NOTE(unsafe) new.capacity() == self.capacity() <= self.len()
// NOTE(unsafe) new.capacity() == self.capacity() >= self.len()
// no overflow possible
new.enqueue_unchecked(s.clone());
}