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

ruby-changes:71765

From: Peter <ko1@a...>
Date: Mon, 18 Apr 2022 10:30:07 +0900 (JST)
Subject: [ruby-changes:71765] c69bdcf80c (master): [ruby/bigdecimal] Fix docs

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

From c69bdcf80c1711dc3bff0037333393c844186a57 Mon Sep 17 00:00:00 2001
From: Peter Zhu <peter@p...>
Date: Wed, 13 Apr 2022 13:30:31 -0400
Subject: [ruby/bigdecimal] Fix docs

rdoc parses f[i] as a link, which results in a broken link.

https://github.com/ruby/bigdecimal/commit/a18522e9ca
---
 ext/bigdecimal/lib/bigdecimal/jacobian.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ext/bigdecimal/lib/bigdecimal/jacobian.rb b/ext/bigdecimal/lib/bigdecimal/jacobian.rb
index 5e29304299..4448024c74 100644
--- a/ext/bigdecimal/lib/bigdecimal/jacobian.rb
+++ b/ext/bigdecimal/lib/bigdecimal/jacobian.rb
@@ -42,8 +42,8 @@ module Jacobian https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/lib/bigdecimal/jacobian.rb#L42
   end
 
 
-  # Computes the derivative of f[i] at x[i].
-  # fx is the value of f at x.
+  # Computes the derivative of +f[i]+ at +x[i]+.
+  # +fx+ is the value of +f+ at +x+.
   def dfdxi(f,fx,x,i)
     nRetry = 0
     n = x.size
@@ -75,7 +75,7 @@ module Jacobian https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/lib/bigdecimal/jacobian.rb#L75
     deriv
   end
 
-  # Computes the Jacobian of f at x. fx is the value of f at x.
+  # Computes the Jacobian of +f+ at +x+. +fx+ is the value of +f+ at +x+.
   def jacobian(f,fx,x)
     n = x.size
     dfdx = Array.new(n*n)
-- 
cgit v1.2.1


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

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