summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYusuke Tanaka <yusuktan@maguro.dev>2021-05-15 16:22:45 +0900
committerGitHub <noreply@github.com>2021-05-15 16:22:45 +0900
commit24a2e1ef82cf1a081a9b4603a597eb0085755e36 (patch)
tree165ea45aa936738dbe41ffa164e0452c372dec8c
parent1871ff51728509e0d3118a3ee537dd6f292e8435 (diff)
docs(cli/dts): fix link from master to main (#10633)
-rw-r--r--cli/dts/lib.deno.unstable.d.ts2
-rw-r--r--cli/lsp/language_server.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index e6fe9d2c9..3a6315d50 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -143,7 +143,7 @@ declare namespace Deno {
*
* The plugin system is not stable and will change in the future, hence the
* lack of docs. For now take a look at the example
- * https://github.com/denoland/deno/tree/master/test_plugin
+ * https://github.com/denoland/deno/tree/main/test_plugin
*/
export function openPlugin(filename: string): number;
diff --git a/cli/lsp/language_server.rs b/cli/lsp/language_server.rs
index 2de0ef394..1be65d0fe 100644
--- a/cli/lsp/language_server.rs
+++ b/cli/lsp/language_server.rs
@@ -2960,7 +2960,7 @@ mod tests {
"language": "typescript",
"value": "function Deno.openPlugin(filename: string): number"
},
- "**UNSTABLE**: new API, yet to be vetted.\n\nOpen and initialize a plugin.\n\n```ts\nconst rid = Deno.openPlugin(\"./path/to/some/plugin.so\");\nconst opId = Deno.core.ops()[\"some_op\"];\nconst response = Deno.core.dispatch(opId, new Uint8Array([1,2,3,4]));\nconsole.log(`Response from plugin ${response}`);\n```\n\nRequires `allow-plugin` permission.\n\nThe plugin system is not stable and will change in the future, hence the\nlack of docs. For now take a look at the example\nhttps://github.com/denoland/deno/tree/master/test_plugin"
+ "**UNSTABLE**: new API, yet to be vetted.\n\nOpen and initialize a plugin.\n\n```ts\nconst rid = Deno.openPlugin(\"./path/to/some/plugin.so\");\nconst opId = Deno.core.ops()[\"some_op\"];\nconst response = Deno.core.dispatch(opId, new Uint8Array([1,2,3,4]));\nconsole.log(`Response from plugin ${response}`);\n```\n\nRequires `allow-plugin` permission.\n\nThe plugin system is not stable and will change in the future, hence the\nlack of docs. For now take a look at the example\nhttps://github.com/denoland/deno/tree/main/test_plugin"
],
"range": {
"start": {