From 555cdf3da21fe6dc84c236d8e93b027e44a22808 Mon Sep 17 00:00:00 2001 From: Frozen FIsh <76603360+sudongyuer@users.noreply.github.com> Date: Tue, 1 Mar 2022 00:51:26 +0800 Subject: [PATCH] [docs] fix typo (#7323) --- CONTRIBUTING.md | 2 +- src/runtime/action/index.ts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 48aa238f89..c7989caeea 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -67,7 +67,7 @@ Working on your first Pull Request? You can learn how from this free video serie 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). -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. +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. ### Sending a pull request diff --git a/src/runtime/action/index.ts b/src/runtime/action/index.ts index 6d1d394139..d7cbf04b12 100644 --- a/src/runtime/action/index.ts +++ b/src/runtime/action/index.ts @@ -3,10 +3,10 @@ * - update: An action can have a parameter. This method will be called whenever that parameter changes, * immediately after Svelte has applied updates to the markup. * - destroy: Method that is called after the element is unmounted - * + * * Example usage: * ```ts - * export function myAction(node: HTMLElement, paramater: Parameter): ActionReturn { + * export function myAction(node: HTMLElement, parameter: Parameter): ActionReturn { * // ... * return { * update: (updatedParameter) => {...}, @@ -14,7 +14,7 @@ * }; * } * ``` - * + * * Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action */ export interface ActionReturn { @@ -34,7 +34,7 @@ export interface ActionReturn { * ``` * You can return an object with methods `update` and `destroy` from the function. * See interface `ActionReturn` for more details. - * + * * Docs: https://svelte.dev/docs#template-syntax-element-directives-use-action */ export interface Action {