summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 fd7493095d..5510c659f8 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
* }
*
*/