Clarify errors in docs

This commit is contained in:
Stjepan Glavina 2020-06-02 16:45:41 +02:00
parent 68c4f4f6f6
commit 5ee969c26f
1 changed files with 2 additions and 2 deletions

View File

@ -330,7 +330,7 @@ pub enum PopError {
}
impl PopError {
/// Returns `true` if the queue is empty.
/// Returns `true` if the queue is empty but not closed.
pub fn is_empty(&self) -> bool {
match self {
PopError::Empty => true,
@ -386,7 +386,7 @@ impl<T> PushError<T> {
}
}
/// Returns `true` if the queue is full.
/// Returns `true` if the queue is full but not closed.
pub fn is_full(&self) -> bool {
match self {
PushError::Full(_) => true,