We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
relocate
1 parent 9dd46f2 commit bb94fa7Copy full SHA for bb94fa7
lib/core/path.ml
@@ -148,8 +148,8 @@ let move ~into source =
148
match basename source with None -> into | Some x -> append into [ x ]
149
150
let remove_common_prefix into source =
151
- let rec aux acc into source =
152
- match (into, source) with
+ let rec aux acc s_into s_source =
+ match (s_into, s_source) with
153
| [ x ], y :: xs when String.equal x y -> List.rev_append acc (x :: xs)
154
| x :: xs, y :: ys when String.equal x y -> aux (x :: acc) xs ys
155
| _ -> into @ source
0 commit comments