Skip to content

Commit 6a668c4

Browse files
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 <[email protected]>
1 parent 8e21c41 commit 6a668c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

documentation/docs/06-runtime/02-context.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ interface User {}
9494
// ---cut---
9595
import { getContext, setContext } from 'svelte';
9696

97-
let key = {};
97+
const key = {};
9898

9999
/** @param {User} user */
100100
export function setUserContext(user) {

0 commit comments

Comments
 (0)