Skip to content

Commit

Permalink
include/flatbuffers: typo fixes in comments (google#5884)
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored May 4, 2020
1 parent 2e9a196 commit ff1c782
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion include/flatbuffers/code_generators.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/flexbuffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -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(); }
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/idl.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ template<typename T> 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.
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/minireflect.h
Original file line number Diff line number Diff line change
Expand Up @@ -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*/,
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/stl_emulation.h
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ inline void vector_emplace_back(std::vector<T> *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 T> class unique_ptr : public std::unique_ptr<T> {
public:
Expand Down
2 changes: 1 addition & 1 deletion include/flatbuffers/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff1c782

Please sign in to comment.