From 27d8f2371d767718ca74b9b24d9cfca12a8ef1e2 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 5 Nov 2022 14:02:24 +0200 Subject: [PATCH] ci: fix go->spawn in the examples in vlib/context/README.md too --- vlib/context/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/context/README.md b/vlib/context/README.md index 6d8b96a799..548eab3c60 100644 --- a/vlib/context/README.md +++ b/vlib/context/README.md @@ -42,7 +42,7 @@ fn main() { // the internal routine started by gen. gen := fn (mut ctx context.Context) chan int { dst := chan int{} - go fn (mut ctx context.Context, dst chan int) { + spawn fn (mut ctx context.Context, dst chan int) { mut v := 0 ch := ctx.done() for { @@ -187,4 +187,4 @@ fn main() { assert value == dump(f(ctx, key)) assert not_found_value == dump(f(ctx, 'color')) } -``` +``` \ No newline at end of file