diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-12-23 21:53:47 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-12-23 21:53:47 +0900 |
| commit | 4e12c2577839bd1696a3b318988be1c4de807d48 (patch) | |
| tree | 47fdf031288875d2a0897fb387bdd7326fa87b29 | |
| parent | a438c37ce969a0f50b29f6e0c3c5f2e21bcbebf4 (diff) | |
[DOC] Fix indentation
RDoc markdown parser requires exact 4 spaces or tab as indentation.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12440
| -rw-r--r-- | NEWS.md | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -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]] |
