docs: clarify meaning of "this" in a comment (#8478)

pull/8479/head
James Scott-Brown 2 years ago committed by GitHub
parent 56351a3fab
commit cd690e025b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -286,7 +286,7 @@ You cannot `export default`, since the default export is the component itself.
<script context="module">
let totalComponents = 0;
// this allows an importer to do e.g.
// the export keyword allows this function to imported with e.g.
// `import Example, { alertTotal } from './Example.svelte'`
export function alertTotal() {
alert(totalComponents);

Loading…
Cancel
Save