From 786335df091e24959b1fad63d21e1ed43698ef38 Mon Sep 17 00:00:00 2001 From: Puru Vijay <47742487+PuruVJ@users.noreply.github.com> Date: Thu, 9 May 2024 22:18:11 +0530 Subject: [PATCH] Reword the note --- documentation/blog/2023-09-20-runes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/blog/2023-09-20-runes.md b/documentation/blog/2023-09-20-runes.md index eb4ddad439..8c846431b5 100644 --- a/documentation/blog/2023-09-20-runes.md +++ b/documentation/blog/2023-09-20-runes.md @@ -151,7 +151,7 @@ export function createCounter() { ``` -> Runes can only be used in `.svelte.js` and `.svelte.ts` files. +> Runes can only be used in `.svelte.js`, `.svelte.ts` outside of `.svelte` files. Note that we're using a [get property](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/get) in the returned object, so that `counter.count` always refers to the current value rather than the value at the time the function was called.