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

ruby-changes:71737

From: Peter <ko1@a...>
Date: Fri, 15 Apr 2022 14:21:43 +0900 (JST)
Subject: [ruby-changes:71737] da1695b926 (master): [ruby/optparse] Fix broken links in docs

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

From da1695b9260e1c87a66371b4f7f89cdfedb05d44 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Thu, 14 Apr 2022 11:15:57 -0400
Subject: [ruby/optparse] Fix broken links in docs

https://github.com/ruby/optparse/commit/2bea3b38c3
---
 doc/optparse/creates_option.rdoc | 4 ++--
 doc/optparse/tutorial.rdoc       | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/doc/optparse/creates_option.rdoc b/doc/optparse/creates_option.rdoc
index ad52c6671b..ab672d5124 100644
--- a/doc/optparse/creates_option.rdoc
+++ b/doc/optparse/creates_option.rdoc
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/doc/optparse/creates_option.rdoc#L1
 Creates an option from the given parameters +params+.
-See {Parameters for New Options}[./option_params.rdoc].
+See {Parameters for New Options}[optparse/option_params.rdoc].
 
 The block, if given, is the handler for the created option.
 When the option is encountered during command-line parsing,
 the block is called with the argument given for the option, if any.
-See {Option Handlers}[./option_params.rdoc#label-Option+Handlers].
+See {Option Handlers}[optparse/option_params.rdoc#label-Option+Handlers].
diff --git a/doc/optparse/tutorial.rdoc b/doc/optparse/tutorial.rdoc
index 19c86b93d8..b95089826d 100644
--- a/doc/optparse/tutorial.rdoc
+++ b/doc/optparse/tutorial.rdoc
@@ -657,7 +657,7 @@ Though you may never need to call it directly, https://github.com/ruby/ruby/blob/trunk/doc/optparse/tutorial.rdoc#L657
 here's the core method for defining an option:
 
 - \Method \OptionParser#make_switch accepts an array of parameters and a block.
-  See {Parameters for New Options}[./option_params.rdoc].
+  See {Parameters for New Options}[optparse/option_params.rdoc].
   This method is unlike others here in that it:
   - Accepts an <em>array of parameters</em>;
     others accept a <em>sequence of parameter arguments</em>.
-- 
cgit v1.2.1


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

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