Merge pull request #221 from jordens/patch-1

spsc: fix optimal queue size docstring
This commit is contained in:
Emil Fresk 2021-07-25 11:32:21 +02:00 committed by GitHub
commit e7c4c7b1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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