Skip to content

Commit

Permalink
console should always flush after printing anything
Browse files Browse the repository at this point in the history
  • Loading branch information
andreabergia committed Nov 26, 2024
1 parent f6c86fc commit c1b977b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ public void print(
console.println(element.toString());
}
}

console.flush();
} catch (IOException e) {
throw Context.reportRuntimeError(e.getMessage());
}
Expand Down

0 comments on commit c1b977b

Please sign in to comment.