File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ impl Function {
146
146
/// Ok(())
147
147
/// })?;
148
148
///
149
- /// sleep.call_async(10).await?;
149
+ /// sleep.call_async::<()> (10).await?;
150
150
///
151
151
/// # Ok(())
152
152
/// # }
Original file line number Diff line number Diff line change @@ -639,7 +639,7 @@ impl Lua {
639
639
/// .into_function()?,
640
640
/// )?;
641
641
/// while co.status() == ThreadStatus::Resumable {
642
- /// co.resume(())?;
642
+ /// co.resume::<()> (())?;
643
643
/// }
644
644
/// # Ok(())
645
645
/// # }
@@ -1904,7 +1904,7 @@ impl Lua {
1904
1904
/// fn main() -> Result<()> {
1905
1905
/// let lua = Lua::new();
1906
1906
/// lua.set_app_data("hello");
1907
- /// lua.create_function(hello)?.call(())?;
1907
+ /// lua.create_function(hello)?.call::<()> (())?;
1908
1908
/// let s = lua.app_data_ref::<&str>().unwrap();
1909
1909
/// assert_eq!(*s, "world");
1910
1910
/// Ok(())
Original file line number Diff line number Diff line change @@ -445,7 +445,7 @@ impl Thread {
445
445
/// Ok(())
446
446
/// })?)?;
447
447
/// thread.sandbox()?;
448
- /// thread.resume(())?;
448
+ /// thread.resume::<()> (())?;
449
449
///
450
450
/// // The global environment should be unchanged
451
451
/// assert_eq!(lua.globals().get::<Option<u32>>("var")?, None);
You can’t perform that action at this time.
0 commit comments