Skip to content
This repository
Browse code

Merge pull request #12916 from petervandenabeele/typo_4_0_release_notes

[ci skip] typo in ArgumentError in 4_0_release_notes.md
  • Loading branch information...
commit 080a6804b64f71d4e637158186dbe245334a0ec9 1 parent cf06bc5
Carlos Antonio da Silva carlosantoniodasilva authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  guides/source/4_0_release_notes.md
2  guides/source/4_0_release_notes.md
Source Rendered
@@ -137,7 +137,7 @@ Please refer to the [Changelog](https://github.com/rails/rails/blob/master/activ
137 137
138 138 * `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!`.
139 139
140   -* `String#to_date` now raises `Argument Error: invalid date` instead of `NoMethodError: undefined method 'div' for nil:NilClass`
  140 +* `String#to_date` now raises `ArgumentError: invalid date` instead of `NoMethodError: undefined method 'div' for nil:NilClass`
141 141 when given an invalid date. It is now the same as `Date.parse`, and it accepts more invalid dates than 3.x, such as:
142 142
143 143 ```

0 comments on commit 080a680

Please sign in to comment.
Something went wrong with that request. Please try again.