Skip to content

Commit 98c47e9

Browse files
author
José Valim
committed
String.to_float/1 docs updated
1 parent da50584 commit 98c47e9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/elixir/lib/string.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -888,9 +888,8 @@ defmodule String do
888888

889889
@doc """
890890
Converts a string to a float. If successful, returns a
891-
tuple of the form `{float, remainder of string}`. If unsuccessful,
892-
returns `:error`. If given an integer value, will return
893-
the same value as `to_integer/1`.
891+
tuple of the form `{float, remainder of string}`.
892+
If unsuccessful, returns `:error`.
894893
895894
## Examples
896895

0 commit comments

Comments
 (0)