Skip to content

Commit e7c4c7b

Browse files
authored
Merge pull request #221 from jordens/patch-1
spsc: fix optimal queue size docstring
2 parents 2390ab7 + 46d6f1d commit e7c4c7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spsc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ use core::{
9494

9595
/// A statically allocated single producer single consumer queue with a capacity of `N - 1` elements
9696
///
97-
/// *IMPORTANT*: To get better performance use a capacity that is a power of 2 (e.g. `16`, `32`,
97+
/// *IMPORTANT*: To get better performance use a value for `N` that is a power of 2 (e.g. `16`, `32`,
9898
/// etc.).
9999
pub struct Queue<T, const N: usize> {
100100
// this is from where we dequeue items

0 commit comments

Comments
 (0)