[compiler-rt] fad0919 - [NFC][compiler-rt] Fix typo in FuzzedDataProvider.h doc
via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 6 01:03:02 PDT 2023
Author: MarcoFalke
Date: 2023-10-06T10:02:45+02:00
New Revision: fad0919c508a666eb634ea9793a69322143dbd69
URL: https://github.com/llvm/llvm-project/commit/fad0919c508a666eb634ea9793a69322143dbd69
DIFF: https://github.com/llvm/llvm-project/commit/fad0919c508a666eb634ea9793a69322143dbd69.diff
LOG: [NFC][compiler-rt] Fix typo in FuzzedDataProvider.h doc
Added:
Modified:
compiler-rt/include/fuzzer/FuzzedDataProvider.h
Removed:
################################################################################
diff --git a/compiler-rt/include/fuzzer/FuzzedDataProvider.h b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
index 8a8214bd99fef3c..5903ed837917ca9 100644
--- a/compiler-rt/include/fuzzer/FuzzedDataProvider.h
+++ b/compiler-rt/include/fuzzer/FuzzedDataProvider.h
@@ -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]);
More information about the llvm-commits
mailing list