Skip to content

Commit

Permalink
analyzer: update deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 6, 2024
1 parent 0b4fc48 commit c2a804e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streams/streams.v
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ fn read_line(file &os.File, mut buf []u8) !int {
mut len := 0
mut temp := []u8{len: 256, cap: 256}
for {
read_cnt := file.read_bytes_into_newline(mut temp) or { return err }
read_cnt := file.read_bytes_with_newline(mut temp) or { return err }
len += read_cnt
buf << temp[0..read_cnt]
if read_cnt == 0 {
Expand Down

0 comments on commit c2a804e

Please sign in to comment.