Skip to content

Commit 83746ad

Browse files
authored
Fix spelling in code comments (#17059)
1 parent 1126ef3 commit 83746ad

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

packages/svelte/src/internal/client/proxy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ export function proxy(value) {
267267
if (other_s !== undefined) {
268268
set(other_s, UNINITIALIZED);
269269
} else if (i in target) {
270-
// If the item exists in the original, we need to create a uninitialized source,
270+
// If the item exists in the original, we need to create an uninitialized source,
271271
// else a later read of the property would result in a source being created with
272272
// the value of the original item at that index.
273273
other_s = with_parent(() => source(UNINITIALIZED, stack));

packages/svelte/src/internal/server/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export class Renderer {
441441
}
442442

443443
/**
444-
* Collect all of the `onDestroy` callbacks regsitered during rendering. In an async context, this is only safe to call
444+
* Collect all of the `onDestroy` callbacks registered during rendering. In an async context, this is only safe to call
445445
* after awaiting `collect_async`.
446446
*
447447
* Child renderers are "porous" and don't affect execution order, but component body renderers

packages/svelte/tests/runtime-browser/assert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export function test(args) {
166166
return args;
167167
}
168168

169-
// TypeScript needs the type of assertions to be directly visible, not infered, which is why
169+
// TypeScript needs the type of assertions to be directly visible, not inferred, which is why
170170
// we can't have it on the test suite type.
171171
/**
172172
* @param {any} value

packages/svelte/tests/runtime-runes/samples/mount-props-updates/_config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default test({
2222
target.innerHTML,
2323
// bar is not set in the parent because it's a readonly property
2424
// baz is not set in the parent because while it's a bindable property,
25-
// it wasn't set initially so it's treated as a readonly proeprty
25+
// it wasn't set initially so it's treated as a readonly property
2626
`
2727
<button>reset</button> foo 3
2828
<div><button>update</button> 1 2 3 4</div>

0 commit comments

Comments
 (0)