Skip to content

Commit dcb767d

Browse files
committed
Fix quicksort to compile
1 parent 710da2a commit dcb767d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

handson_activity/act04_quicksort/quicksort_reference.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ open! Base
33
module Printf = struct
44
include Printf
55

6-
let printf fmt = Printf.ksprintf print_string fmt
6+
let printf fmt = Printf.ksprintf (Stdio.Out_channel.output_string Stdio.stdout) fmt
77
end
88

99
module Slice = struct
@@ -15,7 +15,7 @@ module Slice = struct
1515
let set {array; start; _} i v =
1616
array.(start + i) <- v
1717

18-
let length {array: _; start; stop} =
18+
let length {start; stop; _} =
1919
stop - start
2020

2121
let sub t ~i ~j =

0 commit comments

Comments
 (0)