about summary refs log tree commit homepage
path: root/lib/mogilefs/mogilefs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mogilefs/mogilefs.rb')
-rw-r--r--lib/mogilefs/mogilefs.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/mogilefs/mogilefs.rb b/lib/mogilefs/mogilefs.rb
index a3d88db..40ee1ca 100644
--- a/lib/mogilefs/mogilefs.rb
+++ b/lib/mogilefs/mogilefs.rb
@@ -22,9 +22,7 @@
 #
 #   # Retrieve the contents of 'my_image' into '/path/to/huge_file'
 #   # without slurping the entire contents into memory:
-#   File.open('/path/to/huge_file', 'w') do |fp|
-#     mg.get_file_data('my_image', fp)
-#   end
+#   mg.get_file_data('my_image', '/path/to/huge_file')
 #
 #   # Remove the key 'my_image' and 'some_key'.
 #   mg.delete('my_image')