Skip to content

Commit ff0304c

Browse files
author
José Valim
committed
Merge pull request #1528 from jwarwick/regex_typos
Fixed doc typos in Regex
2 parents 4068160 + 660740b commit ff0304c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/elixir/lib/regex.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,12 @@ defmodule Regex do
196196
end
197197

198198
@doc """
199-
Same as run, but scans the target several times collecting all
199+
Same as `run/3`, but scans the target several times collecting all
200200
matches of the regular expression. A list of lists is returned,
201201
where each entry in the primary list represents a match and each
202202
entry in the secondary list represents the captured contents.
203203
204-
The captured contents defaults to :all, which includes the whole
204+
The captured contents defaults to `:all`, which includes the whole
205205
regex match and each capture.
206206
207207
When the option `:capture` is set to `:groups`, it will capture all
@@ -269,7 +269,7 @@ defmodule Regex do
269269
270270
Inside the replacement, you can either give `&` to access the
271271
whole regular expression or `\N`, where `N` is in integer to access
272-
a specific matching parens. You can also set global to false
272+
a specific matching parens. You can also set `:global` to `false`
273273
if you want to replace just the first occurrence.
274274
275275
## Examples

0 commit comments

Comments
 (0)