mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-30 10:00:02 +00:00
include/flatbuffers: typo fixes in comments (#5884)
This commit is contained in:
@@ -61,7 +61,7 @@ class CodeWriter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Appends the given text to the generated code as well as a newline
|
// 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
|
// previously stored in the CodeWriter by calling SetValue above. The newline
|
||||||
// will be suppressed if the text ends with the \\ character.
|
// will be suppressed if the text ends with the \\ character.
|
||||||
void operator+=(std::string text);
|
void operator+=(std::string text);
|
||||||
|
|||||||
@@ -1256,7 +1256,7 @@ class Builder FLATBUFFERS_FINAL_CLASS {
|
|||||||
// auto id = builder.LastValue(); // Remember where we stored it.
|
// auto id = builder.LastValue(); // Remember where we stored it.
|
||||||
// .. more code goes here ..
|
// .. more code goes here ..
|
||||||
// builder.ReuseValue(id); // Refers to same double by offset.
|
// 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.
|
// Works on any data type.
|
||||||
struct Value;
|
struct Value;
|
||||||
Value LastValue() { return stack_.back(); }
|
Value LastValue() { return stack_.back(); }
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ template<typename T> class SymbolTable {
|
|||||||
struct Namespace {
|
struct Namespace {
|
||||||
Namespace() : from_table(0) {}
|
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.
|
// which has a full namespaced descriptor.
|
||||||
// With max_components you can request less than the number of components
|
// With max_components you can request less than the number of components
|
||||||
// the current namespace has.
|
// the current namespace has.
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ struct IterationVisitor {
|
|||||||
// These mark the scope of a table or struct.
|
// These mark the scope of a table or struct.
|
||||||
virtual void StartSequence() {}
|
virtual void StartSequence() {}
|
||||||
virtual void EndSequence() {}
|
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.
|
// 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*/,
|
virtual void Field(size_t /*field_idx*/, size_t /*set_idx*/,
|
||||||
ElementaryType /*type*/, bool /*is_vector*/,
|
ElementaryType /*type*/, bool /*is_vector*/,
|
||||||
|
|||||||
@@ -190,7 +190,7 @@ inline void vector_emplace_back(std::vector<T> *vector, V &&data) {
|
|||||||
// MSVC 2010 doesn't support C++11 aliases.
|
// MSVC 2010 doesn't support C++11 aliases.
|
||||||
// We're manually "aliasing" the class here as we want to bring unique_ptr
|
// 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
|
// 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.
|
// for C++98 STL implementations.
|
||||||
template <class T> class unique_ptr : public std::unique_ptr<T> {
|
template <class T> class unique_ptr : public std::unique_ptr<T> {
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -446,7 +446,7 @@ std::string StripPath(const std::string &filepath);
|
|||||||
// Strip the last component of the path + separator.
|
// Strip the last component of the path + separator.
|
||||||
std::string StripFileName(const std::string &filepath);
|
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.
|
// ends in a separator or not.
|
||||||
std::string ConCatPathFileName(const std::string &path,
|
std::string ConCatPathFileName(const std::string &path,
|
||||||
const std::string &filename);
|
const std::string &filename);
|
||||||
|
|||||||
Reference in New Issue
Block a user