Fix stdio/scanf test case
inner_scanf prematurely exited before parsing collected string
This commit is contained in:
@@ -222,7 +222,7 @@ unsafe fn inner_scanf(
|
||||
r.commit();
|
||||
width = width.map(|w| w - 1);
|
||||
if width.map(|w| w > 0).unwrap_or(true) && !read!() {
|
||||
return Ok(matched);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user