Skip to content

Commit

Permalink
chore: pacify const warning in example
Browse files Browse the repository at this point in the history
  • Loading branch information
nilslice committed Nov 24, 2023
1 parent 902a1a4 commit 62e1b10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/basic.zig
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export fn count_vowels() i32 {
}

// use persistent variables owned by a plugin instance (stored in-memory between function calls)
var var_a_optional = plugin.getVar("a") catch unreachable;
const var_a_optional = plugin.getVar("a") catch unreachable;
plugin.log(.Debug, "plugin var get");

if (var_a_optional == null) {
Expand Down

0 comments on commit 62e1b10

Please sign in to comment.