Permalink
Browse files

[ci skip] typo in ArgumentError exception

  • Loading branch information...
1 parent 38b312a commit 76d4dd6e05c5b6937d0a584e4c408936dd33f35f @petervandenabeele petervandenabeele committed Nov 16, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 guides/source/4_0_release_notes.md
View
2 guides/source/4_0_release_notes.md
@@ -173,7 +173,7 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/4-0-stable/a
* `Object#try` will now return nil instead of raise a NoMethodError if the receiving object does not implement the method, but you can still get the old behavior by using the new `Object#try!`.
-* `String#to_date` now raises `Argument Error: invalid date` instead of `NoMethodError: undefined method 'div' for nil:NilClass`
+* `String#to_date` now raises `ArgumentError: invalid date` instead of `NoMethodError: undefined method 'div' for nil:NilClass`
when given an invalid date. It is now the same as `Date.parse`, and it accepts more invalid dates than 3.x, such as:
```

0 comments on commit 76d4dd6

Please sign in to comment.