From ff1c78233d68d5def89f3b0e38c29e890205e8fb Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Mon, 4 May 2020 19:21:57 +0200 Subject: [PATCH] include/flatbuffers: typo fixes in comments (#5884) --- include/flatbuffers/code_generators.h | 2 +- include/flatbuffers/flexbuffers.h | 2 +- include/flatbuffers/idl.h | 2 +- include/flatbuffers/minireflect.h | 2 +- include/flatbuffers/stl_emulation.h | 2 +- include/flatbuffers/util.h | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/flatbuffers/code_generators.h b/include/flatbuffers/code_generators.h index 166ab89b5..a411c83d4 100644 --- a/include/flatbuffers/code_generators.h +++ b/include/flatbuffers/code_generators.h @@ -61,7 +61,7 @@ class CodeWriter { } // Appends the given text to the generated code as well as a newline - // character. Any text within {{ and }} delimeters is replaced by values + // character. Any text within {{ and }} delimiters is replaced by values // previously stored in the CodeWriter by calling SetValue above. The newline // will be suppressed if the text ends with the \\ character. void operator+=(std::string text); diff --git a/include/flatbuffers/flexbuffers.h b/include/flatbuffers/flexbuffers.h index 4dd71ae1b..7e55a7f60 100644 --- a/include/flatbuffers/flexbuffers.h +++ b/include/flatbuffers/flexbuffers.h @@ -1256,7 +1256,7 @@ class Builder FLATBUFFERS_FINAL_CLASS { // auto id = builder.LastValue(); // Remember where we stored it. // .. more code goes here .. // builder.ReuseValue(id); // Refers to same double by offset. - // LastValue works regardless of wether the value has a key or not. + // LastValue works regardless of whether the value has a key or not. // Works on any data type. struct Value; Value LastValue() { return stack_.back(); } diff --git a/include/flatbuffers/idl.h b/include/flatbuffers/idl.h index eff2058bb..9236cf447 100644 --- a/include/flatbuffers/idl.h +++ b/include/flatbuffers/idl.h @@ -239,7 +239,7 @@ template class SymbolTable { struct Namespace { Namespace() : from_table(0) {} - // Given a (potentally unqualified) name, return the "fully qualified" name + // Given a (potentially unqualified) name, return the "fully qualified" name // which has a full namespaced descriptor. // With max_components you can request less than the number of components // the current namespace has. diff --git a/include/flatbuffers/minireflect.h b/include/flatbuffers/minireflect.h index 67a79a93e..c2babdcc4 100644 --- a/include/flatbuffers/minireflect.h +++ b/include/flatbuffers/minireflect.h @@ -38,7 +38,7 @@ struct IterationVisitor { // These mark the scope of a table or struct. virtual void StartSequence() {} virtual void EndSequence() {} - // Called for each field regardless of wether it is present or not. + // Called for each field regardless of whether it is present or not. // If not present, val == nullptr. set_idx is the index of all set fields. virtual void Field(size_t /*field_idx*/, size_t /*set_idx*/, ElementaryType /*type*/, bool /*is_vector*/, diff --git a/include/flatbuffers/stl_emulation.h b/include/flatbuffers/stl_emulation.h index 8bae61bfd..d7d655eff 100644 --- a/include/flatbuffers/stl_emulation.h +++ b/include/flatbuffers/stl_emulation.h @@ -190,7 +190,7 @@ inline void vector_emplace_back(std::vector *vector, V &&data) { // MSVC 2010 doesn't support C++11 aliases. // We're manually "aliasing" the class here as we want to bring unique_ptr // into the flatbuffers namespace. We have unique_ptr in the flatbuffers - // namespace we have a completely independent implemenation (see below) + // namespace we have a completely independent implementation (see below) // for C++98 STL implementations. template class unique_ptr : public std::unique_ptr { public: diff --git a/include/flatbuffers/util.h b/include/flatbuffers/util.h index a13fc5daf..b6340a2a9 100644 --- a/include/flatbuffers/util.h +++ b/include/flatbuffers/util.h @@ -446,7 +446,7 @@ std::string StripPath(const std::string &filepath); // Strip the last component of the path + separator. std::string StripFileName(const std::string &filepath); -// Concatenates a path with a filename, regardless of wether the path +// Concatenates a path with a filename, regardless of whether the path // ends in a separator or not. std::string ConCatPathFileName(const std::string &path, const std::string &filename);