Skip to content

Commit

Permalink
Fix example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Apr 11, 2024
1 parent c9ede37 commit a06d30e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ let fds = [
new OpenFile(new File([])), // stdin
ConsoleStdout.lineBuffered(msg => console.log(`[WASI stdout] ${msg}`)),
ConsoleStdout.lineBuffered(msg => console.warn(`[WASI stderr] ${msg}`)),
new PreopenDirectory(".", {
"example.c": new File(new TextEncoder("utf-8").encode(`#include "a"`)),
"hello.rs": new File(new TextEncoder("utf-8").encode(`fn main() { println!("Hello World!"); }`)),
}),
new PreopenDirectory(".", [
["example.c", new File(new TextEncoder("utf-8").encode(`#include "a"`))],
["hello.rs", new File(new TextEncoder("utf-8").encode(`fn main() { println!("Hello World!"); }`))],
]),
];
let wasi = new WASI(args, env, fds);

Expand Down

0 comments on commit a06d30e

Please sign in to comment.