diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-11 00:33:08 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-11 00:33:08 +0000 |
commit | f21431e574b1b27e47d19ff40ce2997783d310e3 (patch) | |
tree | 63ddd0cdad3cd31a65af0ab8197580782f253424 /ext/socket | |
parent | b394484a9afb1e349bf5c86358a7d9553f99db77 (diff) | |
download | ruby-f21431e574b1b27e47d19ff40ce2997783d310e3.tar.gz |
* ext/socket/unixsocket.c: [DOC] Fix example to render in HTML
properly, with a patch by @eval [Fixes GH-733]
https://github.com/ruby/ruby/pull/733
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket')
-rw-r--r-- | ext/socket/unixsocket.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/unixsocket.c b/ext/socket/unixsocket.c index 0a1b65a5b9..9a4c2cfc01 100644 --- a/ext/socket/unixsocket.c +++ b/ext/socket/unixsocket.c @@ -278,6 +278,8 @@ recvmsg_blocking(void *data) * call-seq: * unixsocket.recv_io([klass [, mode]]) => io * + * Example + * * UNIXServer.open("/tmp/sock") {|serv| * UNIXSocket.open("/tmp/sock") {|c| * s = serv.accept @@ -475,7 +477,7 @@ unix_peeraddr(VALUE sock) * UNIXSocket.pair([type [, protocol]]) => [unixsocket1, unixsocket2] * UNIXSocket.socketpair([type [, protocol]]) => [unixsocket1, unixsocket2] * - * Creates a pair of sockets connected each other. + * Creates a pair of sockets connected to each other. * * _socktype_ should be a socket type such as: :STREAM, :DGRAM, :RAW, etc. * |