From ec71a5afb1c66b839474beedfd723048c747d3ee Mon Sep 17 00:00:00 2001 From: Robin Bergewski Date: Sun, 13 Apr 2025 16:33:25 +0200 Subject: [PATCH] fix missing imports --- core/sync/chan/chan.odin | 2 ++ core/sync/chan/doc.odin | 1 + 2 files changed, 3 insertions(+) diff --git a/core/sync/chan/chan.odin b/core/sync/chan/chan.odin index fca8cccbf..92668bff8 100644 --- a/core/sync/chan/chan.odin +++ b/core/sync/chan/chan.odin @@ -165,6 +165,8 @@ Creates a buffered version of the specified `Chan` type. Example: + import "core:sync/chan" + create_buffered_example :: proc() { c, err := chan.create_buffered(chan.Chan(int), 10, context.allocator) assert(err == .None) diff --git a/core/sync/chan/doc.odin b/core/sync/chan/doc.odin index 9cc624477..5d65d7410 100644 --- a/core/sync/chan/doc.odin +++ b/core/sync/chan/doc.odin @@ -17,6 +17,7 @@ Example: import "core:sync/chan" import "core:fmt" + import "core:thread" // The consumer reads from the channel until it's closed. // Closing the channel acts as a signal to stop.