mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-09-27 12:30:35 +00:00
fix safety comment in spsc
Signed-off-by: Abhik Jain <abhikjain360@gmail.com>
This commit is contained in:
parent
e7c4c7b1f2
commit
09192874ab
@ -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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user