Skip to content

Commit b4e8f7c

Browse files
authored
Typo correction for Spring documentation
1 parent 161a5d9 commit b4e8f7c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/spring/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export type SpringSetter<T> = (
6262
* Creates a signal and a setter that uses spring physics when interpolating from
6363
* one value to another. This means when the value changes, instead of
6464
* transitioning at a steady rate, it "bounces" like a spring would,
65-
* depending on the physics paramters provided. This adds a level of realism to
65+
* depending on the physics parameters provided. This adds a level of realism to
6666
* the transitions and can enhance the user experience.
6767
*
6868
* `T` - The type of the signal. It works for the basic data types that can be
@@ -196,12 +196,12 @@ export function createSpring<T extends SpringTarget>(
196196
// ===========================================================================
197197

198198
/**
199-
* Creates a spring value that interpolates based on changes on a passed signal.
199+
* Creates a spring value that interpolates based on changes to the passed signal.
200200
* Works similar to the `@solid-primitives/tween`
201201
*
202202
* @param target Target to be modified.
203203
* @param options Options to configure the physics of the spring.
204-
* @returns Returns the spring value only.
204+
* @returns Returns the spring value accessor only.
205205
*
206206
* @example
207207
* const percent = createMemo(() => current() / total() * 100);

0 commit comments

Comments
 (0)