From 6a668c4daf553211a2315f6ef0bfd84c8ef344f0 Mon Sep 17 00:00:00 2001 From: Simon Lund <41208671+simon-lund@users.noreply.github.com> Date: Mon, 7 Apr 2025 22:33:23 +0200 Subject: [PATCH] docs:Update 02-context.md (#15700) * Update 02-context.md use `const` for key variable and assign it a symbol instead of empty of object. * Update documentation/docs/06-runtime/02-context.md --------- Co-authored-by: Rich Harris --- documentation/docs/06-runtime/02-context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/06-runtime/02-context.md b/documentation/docs/06-runtime/02-context.md index b698323a04..4204bcfe6d 100644 --- a/documentation/docs/06-runtime/02-context.md +++ b/documentation/docs/06-runtime/02-context.md @@ -94,7 +94,7 @@ interface User {} // ---cut--- import { getContext, setContext } from 'svelte'; -let key = {}; +const key = {}; /** @param {User} user */ export function setUserContext(user) {