Skip to content

Commit 555cdf3

Browse files
authored
[docs] fix typo (#7323)
1 parent 8073768 commit 555cdf3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Working on your first Pull Request? You can learn how from this free video serie
6767

6868
If you would like to request a new feature or enhancement but are not yet thinking about opening a pull request, you can also file an issue with [feature template](https://github.com/sveltejs/svelte/issues/new?template=feature_request.md).
6969

70-
If you're only fixing a bug, it's fine to submit a pull request right away but we still recommend that you file an issue detailing what you're fixing. This is helpful in case we don't accept that specific fix but want to keep track of the issue.
70+
If you're only fixing a bug, it's fine to submit a pull request right away, but we still recommend that you file an issue detailing what you're fixing. This is helpful in case we don't accept that specific fix but want to keep track of the issue.
7171

7272
### Sending a pull request
7373

src/runtime/action/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
* - update: An action can have a parameter. This method will be called whenever that parameter changes,
44
* immediately after Svelte has applied updates to the markup.
55
* - destroy: Method that is called after the element is unmounted
6-
*
6+
*
77
* Example usage:
88
* ```ts
9-
* export function myAction(node: HTMLElement, paramater: Parameter): ActionReturn<Parameter> {
9+
* export function myAction(node: HTMLElement, parameter: Parameter): ActionReturn<Parameter> {
1010
* // ...
1111
* return {
1212
* update: (updatedParameter) => {...},
1313
* destroy: () => {...}
1414
* };
1515
* }
1616
* ```
17-
*
17+
*
1818
* Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action
1919
*/
2020
export interface ActionReturn<Parameter = any> {
@@ -34,7 +34,7 @@ export interface ActionReturn<Parameter = any> {
3434
* ```
3535
* You can return an object with methods `update` and `destroy` from the function.
3636
* See interface `ActionReturn` for more details.
37-
*
37+
*
3838
* Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action
3939
*/
4040
export interface Action<Element = HTMLElement, Parameter = any> {

0 commit comments

Comments
 (0)