diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-07-03 14:42:10 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-07-06 17:36:30 +0100 |
commit | 65d1f27ff2362be16433e603ed8a1e690249d278 (patch) | |
tree | 23d16f654eb37a6b797b718296014ddea4412131 /ruby/examples/create_disk.rb | |
parent | 352219c718c0705661e48f1fd3809ed47cde1555 (diff) | |
download | libguestfs-65d1f27ff2362be16433e603ed8a1e690249d278.tar.gz libguestfs-65d1f27ff2362be16433e603ed8a1e690249d278.tar.xz libguestfs-65d1f27ff2362be16433e603ed8a1e690249d278.zip |
perl, python, ruby: Fix comments on call to close method.
Make the comments consistent.
Also make the Perl example call $g->close explicitly so it is
consistent with the other examples.
(cherry picked from commit 27ebf517fae972eee49ae5911a03fabe5f4b6e54)
Diffstat (limited to 'ruby/examples/create_disk.rb')
-rw-r--r-- | ruby/examples/create_disk.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ruby/examples/create_disk.rb b/ruby/examples/create_disk.rb index 4e42cf6a..026ea2e7 100644 --- a/ruby/examples/create_disk.rb +++ b/ruby/examples/create_disk.rb @@ -54,4 +54,7 @@ g.mkdir("/foo") # the disk image. g.upload("/etc/resolv.conf", "/foo/resolv.conf") +# Note also that handles are automatically closed if they are +# reaped by the garbage collector. You only need to call close +# if you want to close the handle right away. g.close() |