Remove newlines from yield_with examples

This commit is contained in:
Alex Orlenko
2025-08-30 12:51:53 +01:00
parent 13ff0ca798
commit c70a636ca9
+2 -2
View File
@@ -2100,7 +2100,7 @@ impl Lua {
///
/// ```
/// # use mlua::{Lua, Result};
///
/// #
/// async fn generator(lua: Lua, _: ()) -> Result<()> {
/// for i in 0..10 {
/// lua.yield_with::<()>(i).await?;
@@ -2127,7 +2127,7 @@ impl Lua {
///
/// ```
/// # use mlua::{Lua, Result, Value};
///
/// #
/// async fn pingpong(lua: Lua, mut val: i32) -> Result<()> {
/// loop {
/// val = lua.yield_with::<i32>(val).await? + 1;