Skip to content

Commit 6fa9f1a

Browse files
committed
doc: fix broken using link in ffi.md
The `#sec-using-declarations` fragment does not exist in the explicit resource management proposal, so the link silently resolves to the top of the page. The proposal defines `using` under `#sec-let-and-const-declarations`, and the only `using`-related section ids are static semantics entries. Point the reference at the MDN page for `using` instead, matching the `[`using`]` definition already used in fs.md. Signed-off-by: Soul Lee <alus20x@gmail.com>
1 parent 452c8c5 commit 6fa9f1a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/ffi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,5 +800,5 @@ and keep callback and pointer lifetimes explicit on the native side.
800800
[`--allow-ffi`]: cli.md#--allow-ffi
801801
[`ffi.toBuffer(pointer, length, copy)`]: #ffitobufferpointer-length-copy
802802
[`library.functions`]: #libraryfunctions
803-
[`using`]: https://tc39.es/proposal-explicit-resource-management/#sec-using-declarations
803+
[`using`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/using
804804
[type names]: #type-names

0 commit comments

Comments
 (0)