ruby-changes:12934
From: nobu <ko1@a...>
Date: Wed, 26 Aug 2009 22:37:07 +0900 (JST)
Subject: [ruby-changes:12934] Ruby:r24673 (trunk): * lib/tempfile.rb: fixed typos.
nobu 2009-08-26 22:36:28 +0900 (Wed, 26 Aug 2009) New Revision: 24673 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24673 Log: * lib/tempfile.rb: fixed typos. Modified files: trunk/lib/tempfile.rb Index: lib/tempfile.rb =================================================================== --- lib/tempfile.rb (revision 24672) +++ lib/tempfile.rb (revision 24673) @@ -19,7 +19,7 @@ # == Synopsis # # require 'tempfile' -# +# # file = Tempfile.new('foo') # file.path # => A unique filename in the OS's temp directory, # # e.g.: "/tmp/foo.24722.0" @@ -45,7 +45,7 @@ # Therefore, one should always call #unlink or close in an ensure block, like # this: # -# file = Tempfile.new('foo) +# file = Tempfile.new('foo') # begin # ...do something with file... # ensure @@ -98,7 +98,7 @@ # # file = Tempfile.new('hello') # file.path # => something like: "/tmp/foo????-????-????9382--0" - # + # # # Use the Array form to enforce an extension in the filename: # file = Tempfile.new(['hello', '.jpg']) # file.path # => something like: "/tmp/foo????-????-????9382--0.jpg" @@ -119,12 +119,12 @@ # options, e.g.: # # Tempfile.new('hello', '/home/aisaka', :encoding => 'ascii-8bit') - # + # # # You can also omit the 'tmpdir' parameter: # Tempfile.new('hello', :encoding => 'ascii-8bit') # # === Exceptions - # + # # Under rare circumstances, this constructor can raise an instance of # Tempfile::CreationError. This could happen if a large number # of threads or processes are simultaneously trying to create temp files @@ -236,7 +236,7 @@ # the file after using it, as is explained in the "Explicit close" good # practice section in the Tempfile overview: # - # file = Tempfile.new('foo) + # file = Tempfile.new('foo') # begin # ...do something with file... # ensure @@ -336,7 +336,7 @@ # Tempfile.open('foo', '/home/temp') do |f| # ... do something with f ... # end - # + # # # Equivalent: # f = Tempfile.open('foo', '/home/temp') # begin -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/