diff --git a/logos-codegen/src/graph/regex.rs b/logos-codegen/src/graph/regex.rs index ce58cbe2..d55c490f 100644 --- a/logos-codegen/src/graph/regex.rs +++ b/logos-codegen/src/graph/regex.rs @@ -72,7 +72,7 @@ impl Graph { Mir::Concat(concat) => { // Take an initial guess at the capacity - estimates a little worse than an average case // scenario by assuming every concat element is singular but has a full code-point unicode literal. - // The only way to get the actual size of the Vec is if + // The only way to get the actual size of the Vec is if every sub-concat node is added up. let mut ropebuf: Vec = Vec::with_capacity(concat.len() * 4); let mut then = then;