mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Merge pull request #3363 from rtfeldman/benchmark-prompt
Make the benchmark host prompt the user for input
This commit is contained in:
commit
4fb272f6a1
1 changed files with 3 additions and 0 deletions
|
@ -205,6 +205,9 @@ fn roc_fx_getInt_32bit(output: *GetInt) callconv(.C) void {
|
|||
}
|
||||
|
||||
fn roc_fx_getInt_help() !i64 {
|
||||
const stdout = std.io.getStdOut().writer();
|
||||
stdout.print("Please enter an integer\n", .{}) catch unreachable;
|
||||
|
||||
const stdin = std.io.getStdIn().reader();
|
||||
var buf: [40]u8 = undefined;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue