Skip to content

Commit f02b855

Browse files
committed
Expand on comment
1 parent f7ec09c commit f02b855

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/picos_structured/finally.ml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ let ( let^ ) (release, acquire) body =
6565

6666
let[@inline never] check_no_resource () =
6767
(* In case of cancelation this is not considered an error as the resource was
68-
(likely) released by the parent. *)
68+
released by (the |an)other party involved in the move. Technically this
69+
may hide a real bug where two fibers attempt to move the same resource. *)
6970
Fiber.check (Fiber.current ());
7071
invalid_arg "no resource to move"
7172

0 commit comments

Comments
 (0)