diff --git a/docs/ko/reference/math/range.md b/docs/ko/reference/math/range.md index cabdaeb3..edf64f66 100644 --- a/docs/ko/reference/math/range.md +++ b/docs/ko/reference/math/range.md @@ -31,7 +31,7 @@ range(4); // Returns [0, 5, 10, 15] range(0, 20, 5); -// Returns [] +// Returns [0, -1, -2, -3] range(0, -4, -1); // Throws an error: The step value must be a non-zero integer. diff --git a/docs/reference/math/range.md b/docs/reference/math/range.md index 62db8adc..2e620bf3 100644 --- a/docs/reference/math/range.md +++ b/docs/reference/math/range.md @@ -34,7 +34,7 @@ range(0, 20, 5); // Returns [0, 5, 10, 15, 20] range(0, 21, 5); -// Returns [] +// Returns [0, -1, -2, -3] range(0, -4, -1); // Throws an error: The step value must be a non-zero integer. diff --git a/src/math/range.ts b/src/math/range.ts index ba4a2bc2..680b7256 100644 --- a/src/math/range.ts +++ b/src/math/range.ts @@ -18,7 +18,7 @@ * range(0, 20, 5); * * @example - * // Returns [] + * // Returns [0, -1, -2, -3] * range(0, -4, -1); * * @example