mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix documentation for number_with_precision helper in AV guide [ci skip]
- It accepts `precision` option, not `number_with_precision`.
This commit is contained in:
parent
5324665e9f
commit
32426cec27
1 changed files with 1 additions and 1 deletions
|
@ -1439,7 +1439,7 @@ Formats a number with the specified level of `precision`, which defaults to 3.
|
|||
|
||||
```ruby
|
||||
number_with_precision(111.2345) # => 111.235
|
||||
number_with_precision(111.2345, number_with_precision: 2) # => 111.23
|
||||
number_with_precision(111.2345, precision: 2) # => 111.23
|
||||
```
|
||||
|
||||
### SanitizeHelper
|
||||
|
|
Loading…
Reference in a new issue