docs: Fix docs for range

This commit is contained in:
raon0211 2024-07-08 21:39:59 +09:00
parent 1808025e30
commit 0e7e5c177c
3 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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.

View File

@ -18,7 +18,7 @@
* range(0, 20, 5);
*
* @example
* // Returns []
* // Returns [0, -1, -2, -3]
* range(0, -4, -1);
*
* @example