Skip to content

Commit

Permalink
[DOC] Fix indentation
Browse files Browse the repository at this point in the history
RDoc markdown parser requires exact 4 spaces or tab as indentation.
  • Loading branch information
nobu committed Dec 23, 2024
1 parent a438c37 commit 4e12c25
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,27 +362,27 @@ The following bundled gems are promoted from default gems.
* `Kernel#Float()` now accepts a decimal string with decimal part omitted. [[Feature #20705]]
```rb
Float("1.") #=> 1.0 (previously, an ArgumentError was raised)
Float("1.E-1") #=> 0.1 (previously, an ArgumentError was raised)
```
```rb
Float("1.") #=> 1.0 (previously, an ArgumentError was raised)
Float("1.E-1") #=> 0.1 (previously, an ArgumentError was raised)
```
* `String#to_f` now accepts a decimal string with decimal part omitted. [[Feature #20705]]
Note that the result changes when an exponent is specified.
```rb
"1.".to_f #=> 1.0
"1.E-1".to_f #=> 0.1 (previously, 1.0 was returned)
```
```rb
"1.".to_f #=> 1.0
"1.E-1".to_f #=> 0.1 (previously, 1.0 was returned)
```
* `Object#singleton_method` now returns methods in modules prepended to or included in the
receiver's singleton class. [[Bug #20620]]

```rb
o = Object.new
o.extend(Module.new{def a = 1})
o.singleton_method(:a).call #=> 1
```
```rb
o = Object.new
o.extend(Module.new{def a = 1})
o.singleton_method(:a).call #=> 1
```

* `Refinement#refined_class` has been removed. [[Feature #19714]]

Expand Down

0 comments on commit 4e12c25

Please sign in to comment.