mirror of
https://github.com/janet-lang/janet
synced 2025-11-18 00:05:13 +00:00
Fix reverse docstring
This commit is contained in:
@@ -1198,7 +1198,7 @@
|
|||||||
res)
|
res)
|
||||||
|
|
||||||
(defn reverse
|
(defn reverse
|
||||||
"Reverses the order of the elements in a given array or tuple and returns a new array."
|
"Reverses the order of the elements in a given array or tuple and returns it mutated."
|
||||||
[t]
|
[t]
|
||||||
(def len-1 (- (length t) 1))
|
(def len-1 (- (length t) 1))
|
||||||
(def half (/ len-1 2))
|
(def half (/ len-1 2))
|
||||||
|
|||||||
Reference in New Issue
Block a user