Skip to content

Commit 452d362

Browse files
committed
doc: fix undefined reference for X509Certificate and format markdown
1 parent 4821d5c commit 452d362

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

doc/api/tls.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2323,9 +2323,9 @@ added:
23232323
**Default:** `"default"`.
23242324
* `as` {string} The format of returned certificates. One of:
23252325
* `"buffer"` (default): Returns an array of certificate data as `Buffer` objects.
2326-
* `"x509"`: Returns an array of [`X509Certificate`][] instances.
2326+
* `"x509"`: Returns an array of \[`X509Certificate`]\[] instances.
23272327

2328-
* Returns: {Array.<Buffer|X509Certificate>}
2328+
* Returns: {Array.\<Buffer|X509Certificate>}
23292329
An array of certificates in the specified format.
23302330

23312331
* `"default"`: return the CA certificates that will be used by the Node.js TLS clients by default.
@@ -2465,6 +2465,7 @@ added:
24652465
[Session Resumption]: #session-resumption
24662466
[Stream]: stream.md#stream
24672467
[TLS recommendations]: https://wiki.mozilla.org/Security/Server_Side_TLS
2468+
[X509Certificate]: https://nodejs.org/api/crypto.html#class-x509certificate
24682469
[`'newSession'`]: #event-newsession
24692470
[`'resumeSession'`]: #event-resumesession
24702471
[`'secureConnect'`]: #event-secureconnect

0 commit comments

Comments
 (0)