Skip to content

Commit

Permalink
Remove inferrable return type from landing page example
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis committed Sep 2, 2024
1 parent a9ba467 commit 1a88668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export fn main {
// Create a buffer of memory on the GPU
let b = GBuffer([1, 2, 3, 4]);
// Map the values into a new buffer on the GPU
let out = b.map(fn (val: gi32) -> gi32 = val + 2);
let out = b.map(fn (val: gi32) = val + 2);
// Read the results back to RAM and print them
out.read{i32}.print;
}
Expand Down

0 comments on commit 1a88668

Please sign in to comment.