This commit is contained in:
Laria 2022-02-25 21:38:14 +01:00
parent bb464d8226
commit 4088fdd1c3
2 changed files with 2 additions and 2 deletions

View file

@ -57,7 +57,7 @@ struct apfl_string {
size_t len;
// TODO: Not sure, if it's a good idea to expose this. We now need the actual
// size of the underlying allocation tough. Maybe we should better
// size of the underlying allocation though. Maybe we should better
// shrink the cap to len wen we're done building a string?
size_t cap;
};

View file

@ -902,7 +902,7 @@ match_pattern_match_list(
static enum match_result
match_pattern_match(struct apfl_allocator allocator, struct match_pattern *pattern, struct apfl_value value)
{
// We put the contraints into the list from the outside in, so we need
// We put the constraints into the list from the outside in, so we need
// to iterate in reverse order.
for (size_t i = pattern->constraints_len; i-- > 0; ) {
enum match_result result = match_pattern_check_constraint(