This commit is contained in:
Feng Lee 2015-03-12 23:32:55 +08:00
parent 557c341106
commit 7f12562871
1 changed files with 2 additions and 2 deletions

View File

@ -169,8 +169,8 @@ triples([W|Words], Parent, Acc) ->
Node = join(Parent, W),
triples(Words, Node, [{Parent, W, Node}|Acc]).
join(root, W) ->
W;
join(root, W) ->
bin(W);
join(Parent, W) ->
<<(bin(Parent))/binary, $/, (bin(W))/binary>>.