Skip to content

Commit

Permalink
Merge pull request #12916 from petervandenabeele/typo_4_0_release_notes
Browse files Browse the repository at this point in the history
[ci skip] typo in ArgumentError in 4_0_release_notes.md
  • Loading branch information
carlosantoniodasilva committed Nov 16, 2013
2 parents 38b312a + 76d4dd6 commit 4c76040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/4_0_release_notes.md
Expand Up @@ -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!`. * `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: when given an invalid date. It is now the same as `Date.parse`, and it accepts more invalid dates than 3.x, such as:


``` ```
Expand Down

0 comments on commit 4c76040

Please sign in to comment.