Skip to content

Commit bcd6da7

Browse files
soulee-devaduh95
authored andcommitted
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> PR-URL: #65632 Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent e7c2863 commit bcd6da7

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)