Skip to content

Commit 5ee969c

Browse files
author
Stjepan Glavina
committed
Clarify errors in docs
1 parent 68c4f4f commit 5ee969c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ pub enum PopError {
330330
}
331331

332332
impl PopError {
333-
/// Returns `true` if the queue is empty.
333+
/// Returns `true` if the queue is empty but not closed.
334334
pub fn is_empty(&self) -> bool {
335335
match self {
336336
PopError::Empty => true,
@@ -386,7 +386,7 @@ impl<T> PushError<T> {
386386
}
387387
}
388388

389-
/// Returns `true` if the queue is full.
389+
/// Returns `true` if the queue is full but not closed.
390390
pub fn is_full(&self) -> bool {
391391
match self {
392392
PushError::Full(_) => true,

0 commit comments

Comments
 (0)