Skip to content

Commit

Permalink
use correct reserve on create_component_match_result
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Jan 27, 2025
1 parent ef487c8 commit aec5864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ada/url_pattern-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ url_pattern_component<regex_provider>::create_component_match_result(
}

// Optimization: Let's reserve the size.
result.groups.reserve(exec_result.size() - 1);
result.groups.reserve(exec_result.size());

// We explicitly start iterating from 0 even though the spec
// says we should start from 1. This case is handled by the
Expand Down

0 comments on commit aec5864

Please sign in to comment.