Skip to content

Commit

Permalink
Fix syntax to update buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
astrada committed Nov 7, 2023
1 parent faf57d8 commit c8eb017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/testBuffering.ml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ let print_array arr =
let len = Bigarray.Array1.dim arr in
let r = Bytes.make len ' ' in
for i = 0 to len - 1 do
r.[i] <- arr.{i}
Bytes.set r i arr.{i}
done;
Bytes.to_string r

Expand Down

0 comments on commit c8eb017

Please sign in to comment.