Skip to content

Commit 8d2199c

Browse files
author
José Valim
committed
Merge pull request #2418 from jw2013/master
fix typo in docstring of String.at and String.slice
2 parents b959049 + 54e69c0 commit 8d2199c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/lib/string.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ defmodule String do
927927

928928
@doc """
929929
Returns the grapheme in the `position` of the given utf8 `string`.
930-
If `position` is greater than `string` length, than it returns `nil`.
930+
If `position` is greater than `string` length, then it returns `nil`.
931931
932932
## Examples
933933
@@ -974,7 +974,7 @@ defmodule String do
974974
@doc """
975975
Returns a substring starting at the offset given by the first, and
976976
a length given by the second.
977-
If the offset is greater than string length, than it returns `""`.
977+
If the offset is greater than string length, then it returns `""`.
978978
979979
## Examples
980980

0 commit comments

Comments
 (0)