summaryrefslogtreecommitdiff
path: root/ext/socket/basicsocket.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-13 12:01:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-13 12:01:53 +0000
commit840e6c70e811908236f5f3c5ae81eec817c6f461 (patch)
treeccd951508faf426fb5f2702963563cd990dd9a3a /ext/socket/basicsocket.c
parent5b8339edf65091d3fab69cd902954a8da291b33f (diff)
rdoc update.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/basicsocket.c')
-rw-r--r--ext/socket/basicsocket.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c
index fd74930..5510c65 100644
--- a/ext/socket/basicsocket.c
+++ b/ext/socket/basicsocket.c
@@ -369,7 +369,11 @@ bsock_getpeername(VALUE sock)
* The result is a two element array which contains the effective uid and the effective gid.
*
* Socket.unix_server_loop("/tmp/sock") {|s|
- * p s.getpeereid #=> [1000, 1000]
+ * begin
+ * p s.getpeereid #=> [1000, 1000]
+ * ensure
+ * s.close
+ * end
* }
*
*/