From 1dda6cace606054d2555e9069984add18994cb2b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 10 Mar 2019 16:07:16 +0300 Subject: [PATCH] fix comment This `+ 1` is what distinguishes already fully written slot from a free or partially written slot --- crossbeam-queue/src/array_queue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crossbeam-queue/src/array_queue.rs b/crossbeam-queue/src/array_queue.rs index dc1717f25..318f9e5db 100644 --- a/crossbeam-queue/src/array_queue.rs +++ b/crossbeam-queue/src/array_queue.rs @@ -23,7 +23,7 @@ use err::{PopError, PushError}; struct Slot { /// The current stamp. /// - /// If the stamp equals the tail, this node will be next written to. If it equals the head, + /// If the stamp equals the tail, this node will be next written to. If it equals head + 1, /// this node will be next read from. stamp: AtomicUsize,