Skip to content

Commit bb94fa7

Browse files
committed
Fix relocate
1 parent 9dd46f2 commit bb94fa7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/core/path.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ let move ~into source =
148148
match basename source with None -> into | Some x -> append into [ x ]
149149

150150
let remove_common_prefix into source =
151-
let rec aux acc into source =
152-
match (into, source) with
151+
let rec aux acc s_into s_source =
152+
match (s_into, s_source) with
153153
| [ x ], y :: xs when String.equal x y -> List.rev_append acc (x :: xs)
154154
| x :: xs, y :: ys when String.equal x y -> aux (x :: acc) xs ys
155155
| _ -> into @ source

0 commit comments

Comments
 (0)