aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-16 23:11:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-16 23:11:40 +0000
commita9f422de85aeb9ac4bcd0b3980f2612c0ba0a0a4 (patch)
treec104d6647d8cca6f471f92123fa79219adae6b2c /lib
parent263c16d61e69b15e097167b442141f32192ab43a (diff)
downloadruby-a9f422de85aeb9ac4bcd0b3980f2612c0ba0a0a4.tar.gz
Layout fixes in rdoc of lib/tempfile.rb [ci skip]
RDoc doesn't understand an asterisk inside the plus markers. Moving them out of the markers looks better. [Fix GH-1716] From: Herwin Weststrate <herwinw@herwinw.nl> git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/tempfile.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 85b7720a48..80a356b603 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -274,7 +274,7 @@ class Tempfile < DelegateClass(File)
# object will be automatically closed after the block terminates.
# The call returns the value of the block.
#
- # In any case, all arguments (+*args+) will be passed to Tempfile.new.
+ # In any case, all arguments (<code>*args</code>) will be passed to Tempfile.new.
#
# Tempfile.open('foo', '/home/temp') do |f|
# ... do something with f ...
@@ -317,7 +317,7 @@ end
# the temporary file is removed after the block terminates.
# The call returns the value of the block.
#
-# In any case, all arguments (+*args+) will be treated as Tempfile.new.
+# In any case, all arguments (<code>**options</code>) will be treated as Tempfile.new.
#
# Tempfile.create('foo', '/home/temp') do |f|
# ... do something with f ...