Skip to content

Commit

Permalink
docs: clarify meaning of "this" in a comment (sveltejs#8478)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesscottbrown committed Apr 11, 2023
1 parent 56351a3 commit cd690e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/02-component-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd690e0

Please sign in to comment.