Better styling

This commit is contained in:
elvis
2025-01-26 23:03:20 +01:00
parent f175a6089d
commit b16aef4ecb
2 changed files with 8 additions and 6 deletions

View File

@ -132,8 +132,8 @@ module Make (M: PrintableType) = struct
}
let addToLastNode (newcontent: elt) (cfg: t) : t =
match cfg.empty with
| true -> let newnode = Node.create () in
if cfg.empty then
let newnode = Node.create () in
{ empty = false;
nodes = NodeSet.singleton newnode;
edges = NodeMap.empty;
@ -144,7 +144,7 @@ module Make (M: PrintableType) = struct
terminal = Some newnode;
content = NodeMap.singleton newnode [newcontent]
}
| false ->
else
let prevcfgterminal = Option.get cfg.terminal in
{ cfg with
content = (NodeMap.add_to_list_last