Skip to content

Commit 3c63b12

Browse files
chore: fix typos in code comments and documentation (#17187)
* chore: fix typos in code comments and documentation * regenerate --------- Co-authored-by: Rich Harris <[email protected]>
1 parent a7848c0 commit 3c63b12

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

documentation/docs/98-reference/.generated/client-warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Hydration failed because the initial UI does not match what was rendered on the
237237
238238
This warning is thrown when Svelte encounters an error while hydrating the HTML from the server. During hydration, Svelte walks the DOM, expecting a certain structure. If that structure is different (for example because the HTML was repaired by the DOM because of invalid HTML), then Svelte will run into issues, resulting in this warning.
239239
240-
During development, this error is often preceeded by a `console.error` detailing the offending HTML, which needs fixing.
240+
During development, this error is often preceded by a `console.error` detailing the offending HTML, which needs fixing.
241241
242242
### invalid_raw_snippet_render
243243

packages/svelte/messages/client-warnings/warnings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ To fix this, either silence the warning with a [`svelte-ignore`](basic-markup#Co
209209
210210
This warning is thrown when Svelte encounters an error while hydrating the HTML from the server. During hydration, Svelte walks the DOM, expecting a certain structure. If that structure is different (for example because the HTML was repaired by the DOM because of invalid HTML), then Svelte will run into issues, resulting in this warning.
211211
212-
During development, this error is often preceeded by a `console.error` detailing the offending HTML, which needs fixing.
212+
During development, this error is often preceded by a `console.error` detailing the offending HTML, which needs fixing.
213213
214214
## invalid_raw_snippet_render
215215

packages/svelte/src/compiler/migrate/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ const instance_script = {
604604
'Encountered an export declaration pattern that is not supported for automigration.'
605605
);
606606
// Turn export let into props. It's really really weird because export let { x: foo, z: [bar]} = ..
607-
// means that foo and bar are the props (i.e. the leafs are the prop names), not x and z.
607+
// means that foo and bar are the props (i.e. the leaves are the prop names), not x and z.
608608
// const tmp = b.id(state.scope.generate('tmp'));
609609
// const paths = extract_paths(declarator.id, tmp);
610610
// state.props_pre.push(
@@ -1812,7 +1812,7 @@ function handle_events(element, state) {
18121812
}
18131813

18141814
/**
1815-
* Returns start and end of the node. If the start is preceeded with white-space-only before a line break,
1815+
* Returns start and end of the node. If the start is preceded with white-space-only before a line break,
18161816
* the start will be the start of the line.
18171817
* @param {string} source
18181818
* @param {LabeledStatement} node

packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ export function VariableDeclaration(node, context) {
305305
if (has_props) {
306306
if (declarator.id.type !== 'Identifier') {
307307
// Turn export let into props. It's really really weird because export let { x: foo, z: [bar]} = ..
308-
// means that foo and bar are the props (i.e. the leafs are the prop names), not x and z.
308+
// means that foo and bar are the props (i.e. the leaves are the prop names), not x and z.
309309
const tmp = b.id(context.state.scope.generate('tmp'));
310310
const { inserts, paths } = extract_paths(declarator.id, tmp);
311311

packages/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export function VariableDeclaration(node, context) {
119119
if (has_props) {
120120
if (declarator.id.type !== 'Identifier') {
121121
// Turn export let into props. It's really really weird because export let { x: foo, z: [bar]} = ..
122-
// means that foo and bar are the props (i.e. the leafs are the prop names), not x and z.
122+
// means that foo and bar are the props (i.e. the leaves are the prop names), not x and z.
123123
const tmp = b.id(context.state.scope.generate('tmp'));
124124
const { inserts, paths } = extract_paths(declarator.id, tmp);
125125

packages/svelte/src/compiler/phases/3-transform/shared/transform-async.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function transform_body(instance_body, runner, transform) {
3535
(node) => /** @type {ESTree.Statement | ESTree.VariableDeclaration} */ (transform(node))
3636
);
3737

38-
// Declarations for the await expressions (they will asign to them; need to be hoisted to be available in whole instance scope)
38+
// Declarations for the await expressions (they will assign to them; need to be hoisted to be available in whole instance scope)
3939
if (instance_body.declarations.length > 0) {
4040
statements.push(
4141
b.declaration(

packages/svelte/src/internal/client/dom/elements/bindings/this.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function bind_this(element_or_component = {}, update, get_value, get_part
3838
untrack(() => {
3939
if (element_or_component !== get_value(...parts)) {
4040
update(element_or_component, ...parts);
41-
// If this is an effect rerun (cause: each block context changes), then nullfiy the binding at
41+
// If this is an effect rerun (cause: each block context changes), then nullify the binding at
4242
// the previous position if it isn't already taken over by a different effect.
4343
if (old_parts && is_bound_this(get_value(...old_parts), element_or_component)) {
4444
update(null, ...old_parts);

packages/svelte/src/internal/client/dom/elements/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export function add_form_reset_listener() {
5151
}
5252
});
5353
},
54-
// In the capture phase to guarantee we get noticed of it (no possiblity of stopPropagation)
54+
// In the capture phase to guarantee we get noticed of it (no possibility of stopPropagation)
5555
{ capture: true }
5656
);
5757
}

0 commit comments

Comments
 (0)