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. * Socket.sockaddr_in or Socket.unpack_sockaddr_un.
* *
* sockaddr examples: * sockaddr examples:
* - ["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"] * - <code>["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"]</code>
* - ["AF_INET6", 42304, "ip6-localhost", "::1"] * - <code>["AF_INET6", 42304, "ip6-localhost", "::1"]</code>
* - ["AF_UNIX", "/tmp/sock"] * - <code>["AF_UNIX", "/tmp/sock"]</code>
* - Socket.sockaddr_in("smtp", "2001:DB8::1") * - <code>Socket.sockaddr_in("smtp", "2001:DB8::1")</code>
* - Socket.sockaddr_in(80, "172.18.22.42") * - <code>Socket.sockaddr_in(80, "172.18.22.42")</code>
* - Socket.sockaddr_in(80, "www.ruby-lang.org") * - <code>Socket.sockaddr_in(80, "www.ruby-lang.org")</code>
* - Socket.sockaddr_un("/tmp/sock") * - <code>Socket.sockaddr_un("/tmp/sock")</code>
* *
* In an AF_INET/AF_INET6 sockaddr array, the 4th element, * In an AF_INET/AF_INET6 sockaddr array, the 4th element,
* numeric IP address, is used to construct socket address in the Addrinfo instance. * 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.has_key?('field_name')
# cgi.include?('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) # cgi.rb(included in Ruby 1.6)
# #
# === Get form values as hash # === Get form values as hash