docs: clarify meaing of "this" in a comment

pull/8478/head
James Scott-Brown 3 years ago committed by GitHub
parent 56351a3fab
commit 8bc0a8d185
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"> <script context="module">
let totalComponents = 0; let totalComponents = 0;
// this allows an importer to do e.g. // the export keyword allows this function to imported as e.g.
// `import Example, { alertTotal } from './Example.svelte'` // `import Example, { alertTotal } from './Example.svelte'`
export function alertTotal() { export function alertTotal() {
alert(totalComponents); alert(totalComponents);

Loading…
Cancel
Save