mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Update cli example platform
This commit is contained in:
parent
6dcea4f151
commit
7b70e9b0e4
6 changed files with 43 additions and 36 deletions
|
@ -52,7 +52,7 @@ pub fn roc_fx_getLine() -> RocStr {
|
|||
let stdin = io::stdin();
|
||||
let line1 = stdin.lock().lines().next().unwrap().unwrap();
|
||||
|
||||
RocStr::from_slice_with_capacity(line1.as_bytes(), line1.len())
|
||||
RocStr::from_slice(line1.as_bytes())
|
||||
}
|
||||
|
||||
unsafe fn call_the_closure(function_pointer: *const u8, closure_data_ptr: *const u8) -> i64 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue