Skip to content

Commit 4e12c25

Browse files
committed
[DOC] Fix indentation
RDoc markdown parser requires exact 4 spaces or tab as indentation.
1 parent a438c37 commit 4e12c25

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

NEWS.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -362,27 +362,27 @@ The following bundled gems are promoted from default gems.
362362
363363
* `Kernel#Float()` now accepts a decimal string with decimal part omitted. [[Feature #20705]]
364364
365-
```rb
366-
Float("1.") #=> 1.0 (previously, an ArgumentError was raised)
367-
Float("1.E-1") #=> 0.1 (previously, an ArgumentError was raised)
368-
```
365+
```rb
366+
Float("1.") #=> 1.0 (previously, an ArgumentError was raised)
367+
Float("1.E-1") #=> 0.1 (previously, an ArgumentError was raised)
368+
```
369369
370370
* `String#to_f` now accepts a decimal string with decimal part omitted. [[Feature #20705]]
371371
Note that the result changes when an exponent is specified.
372372
373-
```rb
374-
"1.".to_f #=> 1.0
375-
"1.E-1".to_f #=> 0.1 (previously, 1.0 was returned)
376-
```
373+
```rb
374+
"1.".to_f #=> 1.0
375+
"1.E-1".to_f #=> 0.1 (previously, 1.0 was returned)
376+
```
377377
378378
* `Object#singleton_method` now returns methods in modules prepended to or included in the
379379
receiver's singleton class. [[Bug #20620]]
380380

381-
```rb
382-
o = Object.new
383-
o.extend(Module.new{def a = 1})
384-
o.singleton_method(:a).call #=> 1
385-
```
381+
```rb
382+
o = Object.new
383+
o.extend(Module.new{def a = 1})
384+
o.singleton_method(:a).call #=> 1
385+
```
386386

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

0 commit comments

Comments
 (0)