wasmtime icon indicating copy to clipboard operation
wasmtime copied to clipboard

Documentation: Outdated comment in component::bindgen documentation/example

Open godotdot opened this issue 1 year ago • 0 comments

The issue is in the first example on this page: https://docs.rs/wasmtime/latest/wasmtime/component/macro.bindgen.html

impl HelloWorldImports for MyState {
    // Note the `Result` return value here where `Ok` is returned back to
    // the component and `Err` will raise a trap.
    fn name(&mut self) -> String {
        self.name.clone()
    }
}```
The comment wasn't changed when the code was: https://github.com/bytecodealliance/wasmtime/blob/247851234bef9af6258ed81f7d235c2865d5445a/crates/wasmtime/src/component/mod.rs#L94

godotdot avatar May 30 '24 05:05 godotdot