From df3949a862fc1eb754ece6b5f66a64872f9b55ad Mon Sep 17 00:00:00 2001 From: Chris Dickinson Date: Thu, 30 Nov 2023 12:53:33 -0800 Subject: [PATCH] docs: fix config example --- docs/source/usage.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 9523c7f..fdfe09a 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -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') )