@@ -185,7 +185,7 @@ impl Func {
185185 /// # use wasmtime::component::Func;
186186 /// # use wasmtime::Store;
187187 /// # fn foo(func: &Func, store: &mut Store<()>) -> anyhow::Result<()> {
188- /// let typed = func.typed::<(), (), _ >(&store)?;
188+ /// let typed = func.typed::<(), ()>(&store)?;
189189 /// typed.call(store, ())?;
190190 /// # Ok(())
191191 /// # }
@@ -198,7 +198,7 @@ impl Func {
198198 /// # use wasmtime::component::Func;
199199 /// # use wasmtime::Store;
200200 /// # fn foo(func: &Func, mut store: Store<()>) -> anyhow::Result<()> {
201- /// let typed = func.typed::<(&str,), (String,), _ >(&store)?;
201+ /// let typed = func.typed::<(&str,), (String,)>(&store)?;
202202 /// let ret = typed.call(&mut store, ("Hello, ",))?.0;
203203 /// println!("returned string was: {}", ret);
204204 /// # Ok(())
@@ -211,17 +211,16 @@ impl Func {
211211 /// # use wasmtime::component::Func;
212212 /// # use wasmtime::Store;
213213 /// # fn foo(func: &Func, mut store: Store<()>) -> anyhow::Result<()> {
214- /// let typed = func.typed::<(u32, Option<&str>, &[u8]), (bool,), _ >(&store)?;
214+ /// let typed = func.typed::<(u32, Option<&str>, &[u8]), (bool,)>(&store)?;
215215 /// let ok: bool = typed.call(&mut store, (1, Some("hello"), b"bytes!"))?.0;
216216 /// println!("return value was: {ok}");
217217 /// # Ok(())
218218 /// # }
219219 /// ```
220- pub fn typed < Params , Return , S > ( & self , store : S ) -> Result < TypedFunc < Params , Return > >
220+ pub fn typed < Params , Return > ( & self , store : impl AsContext ) -> Result < TypedFunc < Params , Return > >
221221 where
222222 Params : ComponentNamedList + Lower ,
223223 Return : ComponentNamedList + Lift ,
224- S : AsContext ,
225224 {
226225 self . _typed ( store. as_context ( ) . 0 )
227226 }
0 commit comments