1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix broken links of rdoc

- `www.ruby-lang.org` links to `./www.ruby-lang.org`
- `cgi['field_name']` links to `./'field_name'`
This commit is contained in:
Kazuhiro NISHIYAMA 2022-03-17 10:11:38 +09:00
parent 59a1a8185f
commit d06f787e9f
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A
2 changed files with 8 additions and 8 deletions

View file

@ -1065,13 +1065,13 @@ rai_unixsocket_len(const rb_addrinfo_t *rai)
* Socket.sockaddr_in or Socket.unpack_sockaddr_un.
*
* sockaddr examples:
* - ["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"]
* - ["AF_INET6", 42304, "ip6-localhost", "::1"]
* - ["AF_UNIX", "/tmp/sock"]
* - Socket.sockaddr_in("smtp", "2001:DB8::1")
* - Socket.sockaddr_in(80, "172.18.22.42")
* - Socket.sockaddr_in(80, "www.ruby-lang.org")
* - Socket.sockaddr_un("/tmp/sock")
* - <code>["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"]</code>
* - <code>["AF_INET6", 42304, "ip6-localhost", "::1"]</code>
* - <code>["AF_UNIX", "/tmp/sock"]</code>
* - <code>Socket.sockaddr_in("smtp", "2001:DB8::1")</code>
* - <code>Socket.sockaddr_in(80, "172.18.22.42")</code>
* - <code>Socket.sockaddr_in(80, "www.ruby-lang.org")</code>
* - <code>Socket.sockaddr_un("/tmp/sock")</code>
*
* In an AF_INET/AF_INET6 sockaddr array, the 4th element,
* numeric IP address, is used to construct socket address in the Addrinfo instance.

View file

@ -162,7 +162,7 @@
# cgi.has_key?('field_name')
# cgi.include?('field_name')
#
# CAUTION! cgi['field_name'] returned an Array with the old
# CAUTION! <code>cgi['field_name']</code> returned an Array with the old
# cgi.rb(included in Ruby 1.6)
#
# === Get form values as hash