diff options
author | Kim Shrier <gitkim@westryn.net> | 2018-11-21 01:22:38 -0700 |
---|---|---|
committer | Michał Muskała <michal@muskala.eu> | 2018-11-21 09:22:38 +0100 |
commit | f75b3dc846becf84b06131dd9b80fbd34bbfa65a (patch) | |
tree | 495e6a2183e39c21aca93d5fa9d407e2aec1de54 | |
parent | a725b39c727c99ce81137c33fc7303e25ffd1753 (diff) | |
download | elixir-f75b3dc846becf84b06131dd9b80fbd34bbfa65a.tar.gz |
improve String moduledoc discussion about splitting a string with a pattern (#8411)
-rw-r--r-- | lib/elixir/lib/string.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/elixir/lib/string.ex b/lib/elixir/lib/string.ex index c0fce63ab..aaffb6e26 100644 --- a/lib/elixir/lib/string.ex +++ b/lib/elixir/lib/string.ex @@ -183,7 +183,7 @@ defmodule String do ## Patterns Many functions in this module work with patterns. For example, - `String.split/2` can split a string into multiple patterns given + `String.split/2` can split a string into multiple strings given a pattern. This pattern can be a string, a list of strings or a compiled pattern: @@ -200,7 +200,7 @@ defmodule String do The compiled pattern is useful when the same match will be done over and over again. Note though that the compiled pattern cannot be stored in a module attribute as the pattern - is generated at runtime and does not survive compile term. + is generated at runtime and does not survive compile time. """ @typedoc """ |