summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo <gustavosantosfe@gmail.com>2019-08-13 10:38:17 -0300
committerAndrea Leopardi <an.leopardi@gmail.com>2019-08-13 15:38:17 +0200
commit029a30000af825a2249194b1d521359c0d08c563 (patch)
tree114bae811669ae1b98a279f9907a82efb31ea2a8
parent291a9307fddf797a7d4d9481b6432cab02e33190 (diff)
downloadelixir-029a30000af825a2249194b1d521359c0d08c563.tar.gz
Update documentation for :all_names in Regex (#9287)
[ci skip]
-rw-r--r--lib/elixir/lib/regex.ex3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/elixir/lib/regex.ex b/lib/elixir/lib/regex.ex
index 570ab2b15..535d0c0a4 100644
--- a/lib/elixir/lib/regex.ex
+++ b/lib/elixir/lib/regex.ex
@@ -86,7 +86,8 @@ defmodule Regex do
* `:none` - does not return matching subpatterns at all
- * `:all_names` - captures all names in the Regex
+ * `:all_names` - captures all named subpattern matches in the Regex as a list
+ ordered **alphabetically** by the names of the subpatterns
* `list(binary)` - a list of named captures to capture