Skip to content

Commit

Permalink
docs: fix config example
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdickinson committed Nov 30, 2023
1 parent fd90039 commit df3949a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,10 @@ We can also statically configure values for use by the guest:
:linenos:
:lineno-start: 15

with extism.Plugin(manifest, wasi=True) as plugin:
with extism.Plugin(manifest, wasi=True, config = {'vowels': 'h'}) as plugin:
print(plugin.call(
"count_vowels",
"hello world",
config = {'vowels': 'h'}
parse = lambda output: json.loads(
bytes(output).decode('utf-8')
)
Expand Down

0 comments on commit df3949a

Please sign in to comment.