Skip to content

Commit

Permalink
docs(README, mod.ts): update code example (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
otogawakatsutoshi authored Oct 3, 2023
1 parent 9e38c65 commit d8fabff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { dlopen } from "https://deno.land/x/plug/mod.ts";
// on operating system:
// * darwin: "https://example.com/some/path/libexample.dylib"
// * windows: "https://example.com/some/path/example.dll"
// * unix: "https://example.com/some/path/libexample.so"
// * linux: "https://example.com/some/path/libexample.so"
const library = await dlopen("https://example.com/some/path/", {
noop: { parameters: [], result: "void" },
});
Expand All @@ -40,7 +40,7 @@ const options: FetchOptions = {
// Becomes:
// darwin: "https://example.com/some/path/libexample.dylib"
// windows: "https://example.com/some/path/example.dll"
// unix: "https://example.com/some/path/libexample.so"
// linux: "https://example.com/some/path/libexample.so"
};

const library = await dlopen(options, {
Expand Down
6 changes: 3 additions & 3 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* // on operating system:
* // * darwin: "https://example.com/some/path/libexample.dylib"
* // * windows: "https://example.com/some/path/example.dll"
* // * unix: "https://example.com/some/path/libexample.so"
* // * linux: "https://example.com/some/path/libexample.so"
* const library = await dlopen("https://example.com/some/path/", {
* noop: { parameters: [], result: "void" },
* });
Expand All @@ -32,7 +32,7 @@
* // Becomes:
* // darwin: "https://example.com/some/path/libexample.dylib"
* // windows: "https://example.com/some/path/example.dll"
* // unix: "https://example.com/some/path/libexample.so"
* // linux: "https://example.com/some/path/libexample.so"
* };
*
* const library = await dlopen(options, {
Expand All @@ -55,7 +55,7 @@
* x86_64: `https://example.com/some/path/libexample.x86_64.dylib`,
* },
* windows: `https://example.com/some/path/example.dll`,
* unix: `https://example.com/some/path/libexample.so`,
* linux: `https://example.com/some/path/libexample.so`,
* },
* };
*
Expand Down

0 comments on commit d8fabff

Please sign in to comment.