From 7c84098e3b00559bd3a560e691820e77eadb3baf Mon Sep 17 00:00:00 2001 From: Arman Bilge Date: Fri, 19 Jan 2024 21:20:26 +0000 Subject: [PATCH] Fix comment --- core/shared/src/main/scala/cats/effect/unsafe/WeakList.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/src/main/scala/cats/effect/unsafe/WeakList.scala b/core/shared/src/main/scala/cats/effect/unsafe/WeakList.scala index 7cb3891cc2..4cf482ec78 100644 --- a/core/shared/src/main/scala/cats/effect/unsafe/WeakList.scala +++ b/core/shared/src/main/scala/cats/effect/unsafe/WeakList.scala @@ -159,7 +159,7 @@ private object WeakList { if (get() == null) { // We own the pack lock, so it is safe to write `next`. It will be published to subsequent packs via the lock. - // Concurrent readers ie `CallbackStack#apply` may read a stale value for `next` still pointing to this node. + // Concurrent readers ie `WeakList#foreach` may read a stale value for `next` still pointing to this node. // This is okay b/c the new `next` (this node's tail) is still reachable via the old `next` (this node). prev.setNext(next) if (next == null) {