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