From 07a0aa9be67a0a0c2b0f501fb470c91091056188 Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Sun, 1 Sep 2024 17:49:01 +0100 Subject: [PATCH] [DOC] Fix link --- doc/_regexp.rdoc | 4 ++-- doc/syntax/literals.rdoc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/_regexp.rdoc b/doc/_regexp.rdoc index 7b71eee984..da323e913f 100644 --- a/doc/_regexp.rdoc +++ b/doc/_regexp.rdoc @@ -212,7 +212,7 @@ Method Regexp.escape returns an escaped string: === Source Literals The source literal largely behaves like a double-quoted string; -see {String Literals}[rdoc-ref:syntax/literals.rdoc@String+Literals]. +see {Double-Quoted String Literals}[rdoc-ref:syntax/literals.rdoc@Double-Quoted+String+Literals]. In particular, a source literal may contain interpolated expressions: @@ -1050,7 +1050,7 @@ Example: re.match('TEst') # => # re.match('TEST') # => nil re.match('teST') # => nil - + re = /t(?i:e)st/ re.match('test') # => # re.match('tEst') # => # diff --git a/doc/syntax/literals.rdoc b/doc/syntax/literals.rdoc index 6d681419a2..ce398dd75d 100644 --- a/doc/syntax/literals.rdoc +++ b/doc/syntax/literals.rdoc @@ -178,7 +178,7 @@ sequences are as follows: The last one, \, represents an empty string instead of a character. It is used to fold a line in a string. -=== Double-quoted \String Literals +=== Double-Quoted \String Literals The most common way of writing strings is using ": @@ -213,7 +213,7 @@ See also: * {% and %Q: Interpolable String Literals}[#label-25+and+-25Q-3A+Interpolable+String+Literals] -=== Single-quoted \String Literals +=== Single-Quoted \String Literals Interpolation may be disabled by escaping the "#" character or using single-quoted strings: