Revision c8cafc8e filter/tree.c

View differences:

filter/tree.c
63 63
 * build_tree
64 64
 * @from: degenerated tree (linked by @tree->left) to be transformed into form suitable for find_tree()
65 65
 *
66
 * Transforms denerated tree into balanced tree.
66
 * Transforms degenerated tree into balanced tree.
67 67
 */
68 68
struct f_tree *
69 69
build_tree(struct f_tree *from)
......
162 162
tree_format(struct f_tree *t, buffer *buf)
163 163
{
164 164
  buffer_puts(buf, "[");
165
 
165

  
166 166
  tree_node_format(t, buf);
167 167

  
168 168
  if (buf->pos == buf->end)
......
171 171
  /* Undo last separator */
172 172
  if (buf->pos[-1] != '[')
173 173
    buf->pos -= 2;
174
 
174

  
175 175
  buffer_puts(buf, "]");
176 176
}

Also available in: Unified diff