diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index bddef3bf22..9107b7d016 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -524,12 +524,12 @@ end
#
# The keyword argument +anonymous+ specifies when the file is removed.
#
-# - +anonymous=false+ (default) without a block: the file is not removed.
-# - +anonymous=false+ (default) with a block: the file is removed after the block exits.
-# - +anonymous=true+ without a block: the file is removed before returning.
-# - +anonymous=true+ with a block: the file is removed before the block is called.
+# - anonymous=false (default) without a block: the file is not removed.
+# - anonymous=false (default) with a block: the file is removed after the block exits.
+# - anonymous=true without a block: the file is removed before returning.
+# - anonymous=true with a block: the file is removed before the block is called.
#
-# In the first case (+anonymous=false+ without a block),
+# In the first case (anonymous=false without a block),
# the file is not removed automatically.
# It should be explicitly closed.
# It can be used to rename to the desired filename.