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 authored and gbrail committed Nov 27, 2024
1 parent f6c86fc commit 19092d1
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 19092d1

Please sign in to comment.