Skip to content

Commit d77302f

Browse files
committed
Drop redundant Source naming
This was necessary in previous versions of GraalWasm.
1 parent 132efe3 commit d77302f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graalwasm/graalwasm-embed-c-code-guide/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public class App {
156156
public static void main(String[] args) throws IOException {
157157
// Find the WebAssembly module resource
158158
URL wasmFile = App.class.getResource("floyd.wasm");
159-
Source source = Source.newBuilder("wasm", wasmFile).name("example").build();
159+
Source source = Source.newBuilder("wasm", wasmFile).build();
160160

161161
// Create Wasm context
162162
try (Context context = Context.newBuilder("wasm").option("wasm.Builtins", "wasi_snapshot_preview1").build()) {

graalwasm/graalwasm-embed-c-code-guide/src/main/java/com/example/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public static Object javaIncrement(Value... v) {
2525
public static void main(String[] args) throws IOException {
2626
// Find the WebAssembly module resource
2727
URL wasmFile = App.class.getResource("floyd.wasm");
28-
Source source = Source.newBuilder("wasm", wasmFile).name("example").build();
28+
Source source = Source.newBuilder("wasm", wasmFile).build();
2929

3030
// Create Wasm context
3131
try (Context context = Context.newBuilder("wasm")

0 commit comments

Comments
 (0)