Skip to content

Commit 0503000

Browse files
committed
Fix link typo
Signed-off-by: Joe Richey <joerichey@google.com>
1 parent 0579fe3 commit 0503000

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl Error {
5454
/// Calling Node.js function `crypto.randomFillSync` failed.
5555
pub const NODE_RANDOM_FILL_SYNC: Error = internal_error(13);
5656
/// Called from an ES module on Node.js. This is unsupported, see:
57-
/// https://docs.rs/getrandom#nodejs-es6-module-support.
57+
/// <https://docs.rs/getrandom#nodejs-es-module-support>.
5858
pub const NODE_ES_MODULE: Error = internal_error(14);
5959

6060
/// Codes below this point represent OS Errors (i.e. positive i32 values).
@@ -173,7 +173,7 @@ fn internal_desc(error: Error) -> Option<&'static str> {
173173
Error::VXWORKS_RAND_SECURE => Some("randSecure: VxWorks RNG module is not initialized"),
174174
Error::NODE_CRYPTO => Some("Node.js crypto CommonJS module is unavailable"),
175175
Error::NODE_RANDOM_FILL_SYNC => Some("Calling Node.js API crypto.randomFillSync failed"),
176-
Error::NODE_ES_MODULE => Some("Node.js ES modules are not directly supported, see https://docs.rs/getrandom#nodejs-es6-module-support"),
176+
Error::NODE_ES_MODULE => Some("Node.js ES modules are not directly supported, see https://docs.rs/getrandom#nodejs-es-module-support"),
177177
_ => None,
178178
}
179179
}

0 commit comments

Comments
 (0)