summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-02 00:50:05 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-02 00:50:05 +0000
commitd97b8d0d6c57e3d17d6165b90ff788a81af67e98 (patch)
tree2b89c5f4f914e543b55e2f48a62681ba952e1899
parent564cb1a0a803ad09fc40fd374037f372ffd6301f (diff)
downloadruby-d97b8d0d6c57e3d17d6165b90ff788a81af67e98.tar.gz
extension.rdoc: update rb_ensure description
* doc/extension.rdoc: set ANYARGS as arguments for func1 and func2. [ci skip] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--doc/extension.ja.rdoc2
-rw-r--r--doc/extension.rdoc2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/extension.ja.rdoc b/doc/extension.ja.rdoc
index 5657de9ba7..2117fe20aa 100644
--- a/doc/extension.ja.rdoc
+++ b/doc/extension.ja.rdoc
@@ -1506,7 +1506,7 @@ VALUE rb_rescue(VALUE (*func1)(ANYARGS), VALUE arg1, VALUE (*func2)(ANYARGS), VA
を第二引数として呼ぶ.戻り値は例外が発生しなかった時はfunc1
の戻り値, 例外が発生した時にはfunc2の戻り値である.
-VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) ::
+VALUE rb_ensure(VALUE (*func1)(ANYARGS), VALUE arg1, VALUE (*func2)(ANYARGS), VALUE arg2) ::
関数func1をarg1を引数として実行し, 実行終了後(たとえ例外が
発生しても) func2をarg2を引数として実行する.戻り値はfunc1
diff --git a/doc/extension.rdoc b/doc/extension.rdoc
index 8da566eceb..42a445602b 100644
--- a/doc/extension.rdoc
+++ b/doc/extension.rdoc
@@ -1531,7 +1531,7 @@ VALUE rb_rescue(VALUE (*func1)(ANYARGS), VALUE arg1, VALUE (*func2)(ANYARGS), VA
of rb_rescue() is the return value from func1 if no exception occurs,
from func2 otherwise.
-VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2) ::
+VALUE rb_ensure(VALUE (*func1)(ANYARGS), VALUE arg1, VALUE (*func2)(ANYARGS), VALUE arg2) ::
Calls the function func1 with arg1 as the argument, then calls func2
with arg2 if execution terminated. The return value from