From 4872e8ef14800811d98d3eb6d627386842f87f3f Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Thu, 15 Dec 2022 13:06:29 -0800 Subject: [PATCH] Improve Struct NEWS [ci skip] I meant to commit diff, but it was left uncommitted locally. --- NEWS.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/NEWS.md b/NEWS.md index bd163ee865..9e3d1e9a9c 100644 --- a/NEWS.md +++ b/NEWS.md @@ -347,11 +347,8 @@ Note: We're only listing outstanding class updates. ```ruby Post = Struct.new(:id, :name) - - # In addition to this, Post.new(1, "hello") #=> # - - # Let the following initialization also work + # From Ruby 3.2, the following code also works without keyword_init: true. Post.new(id: 1, name: "hello") #=> # ```