Skip to content

Commit

Permalink
String.split/3: part opt should be pos_integer (elixir-lang#4557)
Browse files Browse the repository at this point in the history
  • Loading branch information
eksperimental authored and josevalim committed Apr 26, 2016
1 parent ecd7b01 commit 68670d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir/lib/string.ex
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ defmodule String do
be a string, a list of strings or a regular expression.
The string is split into as many parts as possible by
default, but can be controlled via the `parts: num` option.
default, but can be controlled via the `parts: pos_integer` option.
If you pass `parts: :infinity`, it will return all possible parts
(being this one the default behaviour).
Expand Down

0 comments on commit 68670d6

Please sign in to comment.