From 02782c60872e8495ccadfe9b66ae088512020495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20M=C3=BCller?= <34514239+appgurueu@users.noreply.github.com> Date: Sat, 1 Jan 2022 21:56:10 +0100 Subject: [PATCH] table.shuffle: Mark optional arguments properly --- doc/environment.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/environment.adoc b/doc/environment.adoc index 193826c..ce14b77 100644 --- a/doc/environment.adoc +++ b/doc/environment.adoc @@ -122,7 +122,7 @@ Adds all the list entries of `other` to `t` (list part concatenation). Returns a new table with the keys of `t` as values and the corresponding values as keys. If a value occurs multiple times in `t`, any of the keys might be the value in the resulting table. -==== `table.shuffle(t, from, to, random)` +==== `table.shuffle(t, [from], [to], [random])` Performs a Fisher-Yates shuffling on the specified range of the list part of `t`.