Skip to content

Commit e7e8b82

Browse files
committed
Fix typos
1 parent bd2a586 commit e7e8b82

File tree

1 file changed

+6
-6
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ function setup_select_synchronization(value_binding, context) {
255255
* value = $.spread_attributes(element, value, [...])
256256
* });
257257
* ```
258-
* Returns the id of the spread_attribute varialbe if spread is deemed reactive, `null` otherwise.
258+
* Returns the id of the spread_attribute variable if spread is deemed reactive, `null` otherwise.
259259
* @param {Array<import('#compiler').Attribute | import('#compiler').SpreadAttribute>} attributes
260260
* @param {import('../types.js').ComponentContext} context
261261
* @param {import('estree').Identifier} element_id
@@ -376,7 +376,7 @@ function serialize_dynamic_element_spread_attributes(attributes, context, elemen
376376
}
377377

378378
/**
379-
* Serializes an assigment to an element property by adding relevant statements to either only
379+
* Serializes an assignment to an element property by adding relevant statements to either only
380380
* the init or the the init and update arrays, depending on whether or not the value is dynamic.
381381
* Resulting code for static looks something like this:
382382
* ```js
@@ -551,7 +551,7 @@ function serialize_custom_element_attribute_update_assignment(node_id, attribute
551551
}
552552

553553
/**
554-
* Serializes an assigment to the value property of a `<select>`, `<option>` or `<input>` element
554+
* Serializes an assignment to the value property of a `<select>`, `<option>` or `<input>` element
555555
* that needs the hidden `__value` property.
556556
* Returns true if attribute is deemed reactive, false otherwise.
557557
* @param {string} element
@@ -573,7 +573,7 @@ function serialize_element_special_value_attribute(element, node_id, attribute,
573573
const needs_selected_call =
574574
element === 'option' && (is_reactive || collect_parent_each_blocks(context).length > 0);
575575
const needs_option_call = element === 'select' && is_reactive;
576-
const assigment = b.stmt(
576+
const assignment = b.stmt(
577577
needs_selected_call
578578
? b.sequence([
579579
inner_assignment,
@@ -595,12 +595,12 @@ function serialize_element_special_value_attribute(element, node_id, attribute,
595595
id,
596596
undefined,
597597
value,
598-
{ grouped: assigment },
598+
{ grouped: assignment },
599599
contains_call_expression
600600
);
601601
return true;
602602
} else {
603-
state.init.push(assigment);
603+
state.init.push(assignment);
604604
return false;
605605
}
606606
}

0 commit comments

Comments
 (0)