mirror of
https://github.com/rust-embedded/heapless.git
synced 2025-10-02 14:54:30 +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() {
|
for s in self.iter() {
|
||||||
unsafe {
|
unsafe {
|
||||||
// NOTE(unsafe) new.capacity() == self.capacity() <= self.len()
|
// NOTE(unsafe) new.capacity() == self.capacity() >= self.len()
|
||||||
// no overflow possible
|
// no overflow possible
|
||||||
new.enqueue_unchecked(s.clone());
|
new.enqueue_unchecked(s.clone());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user