File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments