[前][次][番号順一覧][スレッド一覧]

ruby-changes:60807

From: Kazuhiro <ko1@a...>
Date: Fri, 17 Apr 2020 17:42:53 +0900 (JST)
Subject: [ruby-changes:60807] 5257a53090 (master): Removed NIL/TRUE/FALSE from documents too

https://git.ruby-lang.org/ruby.git/commit/?id=5257a53090

From 5257a530905a3ccd931577efc76ce09226ff1d06 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Fri, 17 Apr 2020 17:39:42 +0900
Subject: Removed NIL/TRUE/FALSE from documents too

This is follow up of 62554ca97812b454e78a0a9daf6e962ff7a2f589

diff --git a/doc/globals.rdoc b/doc/globals.rdoc
index 89b94e9..1d7cda6 100644
--- a/doc/globals.rdoc
+++ b/doc/globals.rdoc
@@ -50,9 +50,6 @@ $-p::  True if option <tt>-p</tt> is set. Read-only variable. https://github.com/ruby/ruby/blob/trunk/doc/globals.rdoc#L50
 
 == Pre-defined global constants
 
-TRUE::              The typical true value. Deprecated.
-FALSE::             The +false+ itself. Deprecated.
-NIL::               The +nil+ itself. Deprecated.
 STDIN::             The standard input. The default value for $stdin.
 STDOUT::            The standard output. The default value for $stdout.
 STDERR::            The standard error output. The default value for $stderr.
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index 38bfa38..e58430e 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -20,9 +20,6 @@ Literals create objects you can use in your program.  Literals include: https://github.com/ruby/ruby/blob/trunk/doc/syntax/literals.rdoc#L20
 +true+ is a true value.  All objects except +nil+ and +false+ evaluate to a
 true value in conditional expressions.
 
-(There are also the constants +TRUE+, +FALSE+ and +NIL+, but the lowercase
-literal forms are preferred.)
-
 == Numbers
 
 You can write integers of any size as follows:
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]