mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
use newer RocStr api
This commit is contained in:
parent
f4b14b0b1b
commit
e15fbb70b8
1 changed files with 1 additions and 1 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