From c6dec4c4674eb326b9acddefd196748c8d537796 Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer Date: Sun, 15 Nov 2015 10:17:56 +0100 Subject: [PATCH] Small improvements in 2.3.0-preview1 post (en) --- en/news/_posts/2015-11-11-ruby-2-3-0-preview1-released.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/news/_posts/2015-11-11-ruby-2-3-0-preview1-released.md b/en/news/_posts/2015-11-11-ruby-2-3-0-preview1-released.md index dfa515e9be..80bb7971b9 100644 --- a/en/news/_posts/2015-11-11-ruby-2-3-0-preview1-released.md +++ b/en/news/_posts/2015-11-11-ruby-2-3-0-preview1-released.md @@ -13,10 +13,10 @@ Ruby 2.3.0-preview1 is the first preview of Ruby 2.3.0. Many new features and improvements are included. [Frozen String Literal -Pragma](https://bugs.ruby-lang.org/issues/11473) is introduced. On -Ruby 2.1, `"str".freeze` is optimized to reduce object allocation. +Pragma](https://bugs.ruby-lang.org/issues/11473) is introduced. +With Ruby 2.1, `"str".freeze` was optimized to reduce object allocation. Ruby 2.3 introduces a new magic comment and command line option to -specify all the string literals in the source files. +freeze all string literals in the source files. Additionally for debugging, you can get where the object is created on `"can't modify frozen String"` error by `--enable-frozen-string-literal-debug`.