diff --git a/README.md b/README.md index bc10bb1..7b6ba65 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,13 @@ For example, this works correctly, because the `render` function does not have a ``` -But this does not work, because the `render` function has an `imageSource` variable in the closure: +But this does not work, because the `render` function has a `doSomething` function and `variable` in the closure: ```svelte { - if (!imageSource) return; - ctx.drawImage(imageSource, 0, 0, width, height); + doSomething(variable) }} />