Skip to content

Commit

Permalink
[NFC][compiler-rt] Fix typo in FuzzedDataProvider.h doc
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoFalke committed Oct 6, 2023
1 parent 3717147 commit fad0919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler-rt/include/fuzzer/FuzzedDataProvider.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ FuzzedDataProvider::ConsumeRandomLengthString(size_t max_length) {
// picking its contents.
std::string result;

// Reserve the anticipated capaticity to prevent several reallocations.
// Reserve the anticipated capacity to prevent several reallocations.
result.reserve(std::min(max_length, remaining_bytes_));
for (size_t i = 0; i < max_length && remaining_bytes_ != 0; ++i) {
char next = ConvertUnsignedToSigned<char>(data_ptr_[0]);
Expand Down

0 comments on commit fad0919

Please sign in to comment.