diff --git a/contrib/example.go b/contrib/example.go deleted file mode 100644 index fb02931..0000000 --- a/contrib/example.go +++ /dev/null @@ -1,21 +0,0 @@ -package contrib - -import "context" - -func ok() { - ctx := context.Background() - - for i := 0; i < 10; i++ { - ctx := context.WithValue(ctx, "key", i) - _ = ctx - } -} - -func notOk() { - ctx := context.Background() - - for i := 0; i < 10; i++ { - ctx = context.WithValue(ctx, "key", i) // "nested context in loop" - _ = ctx - } -}