Skip to content

Commit 846bb58

Browse files
committed
Fix doc tests
1 parent 88c2a12 commit 846bb58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/wasmtime/src/runtime/gc/enabled/externref.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ impl ExternRef {
192192
/// drop_some_gc_refs();
193193
/// // Finally, try to allocate again, reusing the original
194194
/// // string.
195-
/// ExternRef::new(&mut scope, s)
195+
/// ExternRef::new(&mut scope, s)?
196196
/// }
197197
/// Err(e) => return Err(e),
198198
/// },
@@ -304,7 +304,7 @@ impl ExternRef {
304304
/// drop_some_gc_refs();
305305
/// // Finally, try to allocate again, reusing the original
306306
/// // string.
307-
/// ExternRef::new_async(&mut scope, s).await
307+
/// ExternRef::new_async(&mut scope, s).await?
308308
/// }
309309
/// Err(e) => return Err(e),
310310
/// },

0 commit comments

Comments
 (0)