Skip to content

Commit b74ddea

Browse files
gromnitskyMylesBorins
authored andcommitted
doc: fix broken references
PR-URL: #6100 Reviewed-By: James M Snell <[email protected]>
1 parent 6892536 commit b74ddea

12 files changed

+26
-26
lines changed

doc/api/addons.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ const addon = require('./build/Release/addon');
10841084
[examples]: https://github.com/nodejs/nan/tree/master/examples/
10851085
[installation instructions]: https://github.com/nodejs/node-gyp#installation
10861086
[libuv]: https://github.com/libuv/libuv
1087-
[Linking to Node.js' own dependencies]: #linking-to-nodejs-own-dependencies
1087+
[Linking to Node.js' own dependencies]: #addons_linking_to_node_js_own_dependencies
10881088
[Native Abstractions for Node.js]: https://github.com/nodejs/nan
10891089
[node-gyp]: https://github.com/nodejs/node-gyp
10901090
[require]: globals.html#globals_require

doc/api/buffer.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -1745,11 +1745,11 @@ console.log(buf);
17451745
[`Array#includes()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
17461746
[`Array#indexOf()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf
17471747
[`buf.entries()`]: #buffer_buf_entries
1748-
[`buf.fill(0)`]: #buffer_buf_fill_value_offset_end
1748+
[`buf.fill(0)`]: #buffer_buf_fill_value_offset_end_encoding
17491749
[`buf.keys()`]: #buffer_buf_keys
17501750
[`buf.slice()`]: #buffer_buf_slice_start_end
17511751
[`buf.values()`]: #buffer_buf_values
1752-
[`buf1.compare(buf2)`]: #buffer_buf_compare_otherbuffer
1752+
[`buf1.compare(buf2)`]: #buffer_buf_compare_target_targetstart_targetend_sourcestart_sourceend
17531753
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
17541754
[`RangeError`]: errors.html#errors_class_rangeerror
17551755
[`String.prototype.length`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length
@@ -1758,7 +1758,7 @@ console.log(buf);
17581758
[RFC 4648, Section 5]: https://tools.ietf.org/html/rfc4648#section-5
17591759
[buffer_from_array]: #buffer_class_method_buffer_from_array
17601760
[buffer_from_buffer]: #buffer_class_method_buffer_from_buffer
1761-
[buffer_from_arraybuf]: #buffer_class_method_buffer_from_arraybuffer
1761+
[buffer_from_arraybuf]: #buffer_class_method_buffer_from_arraybuffer_byteoffset_length
17621762
[buffer_from_string]: #buffer_class_method_buffer_from_str_encoding
17631763
[buffer_allocunsafe]: #buffer_class_method_buffer_allocraw_size
17641764
[buffer_alloc]: #buffer_class_method_buffer_alloc_size_fill_encoding

doc/api/child_process.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -1058,10 +1058,10 @@ console.log('中文测试');
10581058
[`child_process.spawn()`]: #child_process_child_process_spawn_command_args_options
10591059
[`child_process.spawnSync()`]: #child_process_child_process_spawnsync_command_args_options
10601060
[`ChildProcess#kill()`]: #child_process_child_kill_signal
1061-
[`ChildProcess#send()`]: #child_process_child_send_message_sendhandle_callback
1061+
[`ChildProcess#send()`]: #child_process_child_send_message_sendhandle_options_callback
10621062
[`Error`]: errors.html#errors_class_error
1063-
[`EventEmitter`]: events.html#events_class_events_eventemitter
1064-
[`EventEmitters`]: events.html#events_class_events_eventemitter
1063+
[`EventEmitter`]: events.html#events_class_eventemitter
1064+
[`EventEmitters`]: events.html#events_class_eventemitter
10651065
[`net.Server`]: net.html#net_class_net_server
10661066
[`net.Socket`]: net.html#net_class_net_socket
10671067
[`options.detached`]: #child_process_options_detached

doc/api/cluster.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ socket.on('data', (id) => {
685685
```
686686

687687
[`child_process.fork()`]: child_process.html#child_process_child_process_fork_modulepath_args_options
688-
[`ChildProcess.send()`]: child_process.html#child_process_child_send_message_sendhandle_callback
688+
[`ChildProcess.send()`]: child_process.html#child_process_child_send_message_sendhandle_options_callback
689689
[`disconnect`]: child_process.html#child_process_child_disconnect
690690
[`kill`]: process.html#process_process_kill_pid_signal
691691
[`server.close()`]: net.html#net_event_close

doc/api/crypto.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -1387,11 +1387,11 @@ See the reference for other recommendations and details.
13871387
[`hash.digest()`]: #crypto_hash_digest_encoding
13881388
[`hash.update()`]: #crypto_hash_update_data_input_encoding
13891389
[`hmac.digest()`]: #crypto_hmac_digest_encoding
1390-
[`hmac.update()`]: #crypto_hmac_update_data
1390+
[`hmac.update()`]: #crypto_hmac_update_data_input_encoding
13911391
[`sign.sign()`]: #crypto_sign_sign_private_key_output_format
1392-
[`sign.update()`]: #crypto_sign_update_data
1392+
[`sign.update()`]: #crypto_sign_update_data_input_encoding
13931393
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_details
1394-
[`verify.update()`]: #crypto_verifier_update_data
1394+
[`verify.update()`]: #crypto_verifier_update_data_input_encoding
13951395
[`verify.verify()`]: #crypto_verifier_verify_object_signature_signature_format
13961396
[Caveats]: #crypto_support_for_weak_or_compromised_algorithms
13971397
[HTML5's `keygen` element]: http://www.w3.org/TR/html5/forms.html#the-keygen-element

doc/api/domain.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ is emitted.
448448
[`domain.dispose()`]: #domain_domain_dispose
449449
[`domain.exit()`]: #domain_domain_exit
450450
[`Error`]: errors.html#errors_class_error
451-
[`EventEmitter`]: events.html#events_class_events_eventemitter
451+
[`EventEmitter`]: events.html#events_class_eventemitter
452452
[`setInterval()`]: timers.html#timers_setinterval_callback_delay_arg
453453
[`setTimeout()`]: timers.html#timers_settimeout_callback_delay_arg
454454
[`throw`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/throw

doc/api/errors.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ found [here][online].
520520
encountered by [`http`][] or [`net`][] -- often a sign that a `socket.end()`
521521
was not properly called.
522522

523-
[`fs.readdir`]: fs.html#fs_fs_readdir_path_callback
523+
[`fs.readdir`]: fs.html#fs_fs_readdir_path_options_callback
524524
[`fs.readFileSync`]: fs.html#fs_fs_readfilesync_file_options
525525
[`fs.unlink`]: fs.html#fs_fs_unlink_path_callback
526526
[`fs`]: fs.html
@@ -529,7 +529,7 @@ found [here][online].
529529
[`net`]: net.html
530530
[`process.on('uncaughtException')`]: process.html#process_event_uncaughtexception
531531
[domains]: domain.html
532-
[event emitter-based]: events.html#events_class_events_eventemitter
532+
[event emitter-based]: events.html#events_class_eventemitter
533533
[file descriptors]: https://en.wikipedia.org/wiki/File_descriptor
534534
[online]: http://man7.org/linux/man-pages/man3/errno.3.html
535535
[stream-based]: stream.html

doc/api/http.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -1204,10 +1204,10 @@ There are a few special headers that should be noted.
12041204
[`'listening'`]: net.html#net_event_listening
12051205
[`'response'`]: #http_event_response
12061206
[`Agent`]: #http_class_http_agent
1207-
[`agent.createConnection()`]: #http_agent_createconnection
1207+
[`agent.createConnection()`]: #http_agent_createconnection_options_callback
12081208
[`Buffer`]: buffer.html#buffer_buffer
12091209
[`destroy()`]: #http_agent_destroy
1210-
[`EventEmitter`]: events.html#events_class_events_eventemitter
1210+
[`EventEmitter`]: events.html#events_class_eventemitter
12111211
[`http.Agent`]: #http_class_http_agent
12121212
[`http.ClientRequest`]: #http_class_http_clientrequest
12131213
[`http.globalAgent`]: #http_http_globalagent
@@ -1219,8 +1219,8 @@ There are a few special headers that should be noted.
12191219
[`net.createConnection()`]: net.html#net_net_createconnection_options_connectlistener
12201220
[`net.Server`]: net.html#net_class_net_server
12211221
[`net.Server.close()`]: net.html#net_server_close_callback
1222-
[`net.Server.listen()`]: net.html#net_server_listen_handle_callback
1223-
[`net.Server.listen(path)`]: net.html#net_server_listen_path_callback
1222+
[`net.Server.listen()`]: net.html#net_server_listen_handle_backlog_callback
1223+
[`net.Server.listen(path)`]: net.html#net_server_listen_path_backlog_callback
12241224
[`net.Server.listen(port)`]: net.html#net_server_listen_port_hostname_backlog_callback
12251225
[`net.Socket`]: net.html#net_class_net_socket
12261226
[`request.socket.getPeerCertificate()`]: tls.html#tls_tlssocket_getpeercertificate_detailed

doc/api/net.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,7 @@ Returns true if input is a version 6 IP address, otherwise returns false.
724724
[`dns.lookup()`]: dns.html#dns_dns_lookup_hostname_options_callback
725725
[`dns.lookup()` hints]: #dns_supported_getaddrinfo_flags
726726
[`end()`]: #net_socket_end_data_encoding
727-
[`EventEmitter`]: events.html#events_class_events_eventemitter
727+
[`EventEmitter`]: events.html#events_class_eventemitter
728728
[`net.Socket`]: #net_class_net_socket
729729
[`pause()`]: #net_socket_pause
730730
[`resume()`]: #net_socket_resume

doc/api/process.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -1085,9 +1085,9 @@ Will print something like:
10851085

10861086
[`'message'`]: child_process.html#child_process_event_message
10871087
[`ChildProcess.disconnect()`]: child_process.html#child_process_child_disconnect
1088-
[`ChildProcess.send()`]: child_process.html#child_process_child_send_message_sendhandle_callback
1088+
[`ChildProcess.send()`]: child_process.html#child_process_child_send_message_sendhandle_options_callback
10891089
[`Error`]: errors.html#errors_class_error
1090-
[`EventEmitter`]: events.html#events_class_events_eventemitter
1090+
[`EventEmitter`]: events.html#events_class_eventemitter
10911091
[`net.Server`]: net.html#net_class_net_server
10921092
[`net.Socket`]: net.html#net_class_net_socket
10931093
[`process.exit()`]: #process_process_exit_code
@@ -1098,4 +1098,4 @@ Will print something like:
10981098
[Signal Events]: #process_signal_events
10991099
[Stream compatibility]: stream.html#stream_compatibility_with_older_node_js_versions
11001100
[the tty docs]: tty.html#tty_tty
1101-
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify
1101+
[`JSON.stringify()`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify

doc/api/tls.markdown

+3-3
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Returned by tls.createSecurePair.
175175
This event is emitted from the SecurePair once the pair has successfully
176176
established a secure connection.
177177

178-
As with checking for the server [`secureConnection`](#event-secureconnection)
178+
As with checking for the server [`secureConnection`](#tls_event_secureconnection)
179179
event, `pair.cleartext.authorized` should be inspected to confirm whether the
180180
certificate used is properly authorized.
181181

@@ -339,7 +339,7 @@ See `net.Server` for more information.
339339
Updates the keys for encryption/decryption of the [TLS Session Tickets][].
340340

341341
NOTE: the buffer should be 48 bytes long. See `ticketKeys` option in
342-
[tls.createServer](#tlscreateserveroptions-secureconnectionlistener) for
342+
[tls.createServer](#tls_tls_createserver_options_secureconnectionlistener) for
343343
more information on how it is used.
344344

345345
NOTE: the change is effective only for future server connections. Existing
@@ -1004,5 +1004,5 @@ console.log(ciphers); // ['AES128-SHA', 'AES256-SHA', ...]
10041004
[TLS recommendations]: https://wiki.mozilla.org/Security/Server_Side_TLS
10051005
[TLS Session Tickets]: https://www.ietf.org/rfc/rfc5077.txt
10061006
[`tls.TLSSocket.getPeerCertificate()`]: #tls_tlssocket_getpeercertificate_detailed
1007-
[`tls.createSecureContext()`]: #tls_tls_createsecurecontext_details
1007+
[`tls.createSecureContext()`]: #tls_tls_createsecurecontext_options
10081008
[`tls.connect()`]: #tls_tls_connect_options_callback

doc/api/vm.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ requires a separate process.
124124

125125
### script.runInThisContext([options])
126126

127-
Similar to [`vm.runInThisContext()`]() but a method of a precompiled `Script`
127+
Similar to [`vm.runInThisContext()`][] but a method of a precompiled `Script`
128128
object. `script.runInThisContext()` runs `script`'s compiled code and returns
129129
the result. Running code does not have access to local scope, but does have
130130
access to the current `global` object.

0 commit comments

Comments
 (0)