Skip to content

Commit

Permalink
fix doc line's length and test one more time
Browse files Browse the repository at this point in the history
  • Loading branch information
eksperimental committed Nov 4, 2014
1 parent ed15b2e commit b1df7e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/elixir/lib/string.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,9 @@ defmodule String do
Returns a float whose text representation is `string`.
`string` must be the string representation of a float.
If a string representation of an integer wants to be used, then `Float.parse/1` should be used instead, otherwise an argument error will be raised.
If a string representation of an integer wants to be used,
then `Float.parse/1` should be used instead,
otherwise an argument error will be raised.
Inlined by the compiler.
Expand Down
2 changes: 1 addition & 1 deletion lib/elixir/test/elixir/string_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,6 @@ defmodule StringTest do
assert String.to_float("3.0") == 3.0

three = fn -> "3" end
assert_raise ArgumentError, fn -> String.to_float(three) end
assert_raise ArgumentError, fn -> String.to_float(three.()) end
end
end

0 comments on commit b1df7e4

Please sign in to comment.