summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBurdette Lamar <BurdetteLamar@Yahoo.com>2025-11-08 09:08:09 -0600
committerGitHub <noreply@github.com>2025-11-08 10:08:09 -0500
commit75d25a42e6052b5f5d90d2d4022ae996fee5913a (patch)
treea759d6c370386ee3b777523b0b31281af06c023b /doc
parent4365c4fb6bd816fc8e9a9dcabacde47c5264d713 (diff)
[DOC] Tweaks for String#to_c
Diffstat (limited to 'doc')
-rw-r--r--doc/string.rb1
-rw-r--r--doc/syntax/literals.rdoc4
2 files changed, 3 insertions, 2 deletions
diff --git a/doc/string.rb b/doc/string.rb
index 3f3461573f..b3d5886b8d 100644
--- a/doc/string.rb
+++ b/doc/string.rb
@@ -399,6 +399,7 @@
# - #hex: Returns the integer value of the leading characters, interpreted as hexadecimal digits.
# - #oct: Returns the integer value of the leading characters, interpreted as octal digits.
# - #ord: Returns the integer ordinal of the first character in +self+.
+# - #to_c: Returns the complex value of leading characters, interpreted as a complex number.
# - #to_i: Returns the integer value of leading characters, interpreted as an integer.
# - #to_f: Returns the floating-point value of leading characters, interpreted as a floating-point number.
#
diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc
index 46bb7673f3..87a891bf2d 100644
--- a/doc/syntax/literals.rdoc
+++ b/doc/syntax/literals.rdoc
@@ -3,7 +3,7 @@
Literals create objects you can use in your program. Literals include:
* {Boolean and Nil Literals}[#label-Boolean+and+Nil+Literals]
-* {Number Literals}[#label-Number+Literals]
+* {Numeric Literals}[#label-Numeric+Literals]
* {Integer Literals}[#label-Integer+Literals]
* {Float Literals}[#label-Float+Literals]
@@ -36,7 +36,7 @@ Literals create objects you can use in your program. Literals include:
+true+ is a true value. All objects except +nil+ and +false+ evaluate to a
true value in conditional expressions.
-== Number Literals
+== \Numeric Literals
=== \Integer Literals