浏览代码

Remove redundant TODO comment

At the moment, we use this function only when `n` is dynamic (part of the
parse), and so this cannot be made statically allocated. If we ever need
that, we could create an `n_of_const` combinator separately or something.
Isaac Woods 5 年之前
父节点
当前提交
84d8ffc3f5
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      aml/src/parser.rs

+ 0 - 1
aml/src/parser.rs

@@ -168,7 +168,6 @@ where
     }
 }
 
-// TODO: can we use const generics (e.g. [R; N]) to avoid allocating?
 pub fn n_of<'a, 'c, P, R>(parser: P, n: usize) -> impl Parser<'a, 'c, Vec<R>>
 where
     'c: 'a,