We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5c3b17 commit 97f18daCopy full SHA for 97f18da
1 file changed
crates/irust/src/bare_repl.rs
@@ -10,6 +10,9 @@ pub fn run(mut irust: IRust) -> crate::irust::Result<()> {
10
11
loop {
12
let n = stdin.read(&mut input_buf)?;
13
+ if n == 0 {
14
+ break Ok(());
15
+ }
16
input.push_str(&String::from_utf8_lossy(&input_buf[..n]));
17
18
let input_c = input.clone();
0 commit comments