Skip to content

Commit 5990a7f

Browse files
addaleaxrvagg
authored andcommitted
doc: fix broken references
Fix minor broken references in crypto.md, net.md and domains.md (which uses `EventEmitter` as a type, of which the anchor in `events.md` has changed). PR-URL: #6941 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent 98e497b commit 5990a7f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

doc/api/crypto.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ See the reference for other recommendations and details.
14081408
[`hmac.update()`]: #crypto_hmac_update_data_input_encoding
14091409
[`sign.sign()`]: #crypto_sign_sign_private_key_output_format
14101410
[`sign.update()`]: #crypto_sign_update_data_input_encoding
1411-
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_details
1411+
[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options
14121412
[`verify.update()`]: #crypto_verifier_update_data_input_encoding
14131413
[`verify.verify()`]: #crypto_verifier_verify_object_signature_signature_format
14141414
[Caveats]: #crypto_support_for_weak_or_compromised_algorithms

doc/api/net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ Returns true if input is a version 6 IP address, otherwise returns false.
731731
[`connect()`]: #net_socket_connect_options_connectlistener
732732
[`destroy()`]: #net_socket_destroy
733733
[`dns.lookup()`]: dns.html#dns_dns_lookup_hostname_options_callback
734-
[`dns.lookup()` hints]: #dns_supported_getaddrinfo_flags
734+
[`dns.lookup()` hints]: dns.html#dns_supported_getaddrinfo_flags
735735
[`end()`]: #net_socket_end_data_encoding
736736
[`EventEmitter`]: events.html#events_class_eventemitter
737737
[`net.Socket`]: #net_class_net_socket

doc/topics/domain-postmortem.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ handle. More on this in _Resource Cleanup on Exception_.
153153

154154
### Resource Cleanup on Exception
155155

156-
The script [`domain-resource-cleanup.js`](domain-resource-cleanup.js)
156+
The script [`domain-resource-cleanup-example.js`][]
157157
contains a more complex example of properly cleaning up in a small resource
158158
dependency tree in the case that an exception occurs in a given connection or
159159
any of its dependencies. Breaking down the script into its basic operations:
@@ -297,3 +297,5 @@ this writing there is ongoing work building out the `AsyncWrap` API and a
297297
proposal for Zones being prepared for the TC39. At such time there is suitable
298298
functionality to replace domains it will undergo the full deprecation cycle and
299299
eventually be removed from core.
300+
301+
[domain-resource-cleanup-example.js]: ./domain-resource-cleanup-example.js

tools/doc/type-parser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const typeMap = {
2424
'cluster.Worker': 'cluster.html#cluster_class_worker',
2525
'dgram.Socket': 'dgram.html#dgram_class_dgram_socket',
2626
'net.Socket': 'net.html#net_class_net_socket',
27-
'EventEmitter': 'events.html#events_class_events_eventemitter',
27+
'EventEmitter': 'events.html#events_class_eventemitter',
2828
'Timer': 'timers.html#timers_timers'
2929
};
3030

0 commit comments

Comments
 (0)