diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-02-27 23:16:42 +0600 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-02-27 23:16:42 +0600 |
commit | e28406576c50a4814fb9254fefed11292dfedb18 (patch) | |
tree | afcdba18b1f4755be01da3c14628fbf2ca762652 | |
parent | 7364faa7d1273e3bfa6703780a659ec9adbf797c (diff) | |
download | vyconf-e28406576c50a4814fb9254fefed11292dfedb18.tar.gz vyconf-e28406576c50a4814fb9254fefed11292dfedb18.zip |
Missing expression in delete_child.
This is embarassing.
-rw-r--r-- | src/vytree.ml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vytree.ml b/src/vytree.ml index 3b6819f..1a380e3 100644 --- a/src/vytree.ml +++ b/src/vytree.ml @@ -92,4 +92,6 @@ let rec delete_child node path = let next_child = find_child node name in match next_child with | None -> raise Nonexistent_path - | Some next_child' -> delete_child next_child' names + | Some next_child' -> + let new_node = delete_child next_child' names in + replace_child node new_node |