Fix a few more spelling mistakes

pull/7751/head
Peter Newman 5 years ago
parent cfdd62fa5f
commit 905681b7b1
  1. 2
      conformance/third_party/jsoncpp/json.h
  2. 2
      java/core/src/main/java/com/google/protobuf/GeneratedMessageLite.java
  3. 2
      python/google/protobuf/pyext/scoped_pyobject_ptr.h
  4. 4
      src/google/protobuf/compiler/js/js_generator.h
  5. 2
      src/google/protobuf/compiler/python/python_generator.cc
  6. 2
      src/google/protobuf/descriptor_unittest.cc

@ -1371,7 +1371,7 @@ public:
*/ */
std::string getFormattedErrorMessages() const; std::string getFormattedErrorMessages() const;
/** \brief Returns a vector of structured errors encounted while parsing. /** \brief Returns a vector of structured errors encountered while parsing.
* \return A (possibly empty) vector of StructuredError objects. Currently * \return A (possibly empty) vector of StructuredError objects. Currently
* only one error can be returned, but the caller should tolerate * only one error can be returned, but the caller should tolerate
* multiple * multiple

@ -223,7 +223,7 @@ public abstract class GeneratedMessageLite<
/** /**
* A method that implements different types of operations described in {@link MethodToInvoke}. * A method that implements different types of operations described in {@link MethodToInvoke}.
* Theses different kinds of operations are required to implement message-level operations for * These different kinds of operations are required to implement message-level operations for
* builders in the runtime. This method bundles those operations to reduce the generated methods * builders in the runtime. This method bundles those operations to reduce the generated methods
* count. * count.
* *

@ -77,7 +77,7 @@ class ScopedPythonPtr {
PyObject* as_pyobject() const { return reinterpret_cast<PyObject*>(ptr_); } PyObject* as_pyobject() const { return reinterpret_cast<PyObject*>(ptr_); }
// Increments the reference count fo the current object. // Increments the reference count of the current object.
// Should not be called when no object is held. // Should not be called when no object is held.
void inc() const { Py_INCREF(ptr_); } void inc() const { Py_INCREF(ptr_); }

@ -125,10 +125,10 @@ struct GeneratorOptions {
std::string extension; std::string extension;
// Create a separate output file for each input file? // Create a separate output file for each input file?
bool one_output_file_per_input_file; bool one_output_file_per_input_file;
// If true, we should append annotations as commen on the last line for // If true, we should append annotations as comments on the last line for
// generated .js file. Annotations used by tools like https://kythe.io // generated .js file. Annotations used by tools like https://kythe.io
// to provide cross-references between .js and .proto files. Annotations // to provide cross-references between .js and .proto files. Annotations
// are enced as base64 proto of GeneratedCodeInfo message (see // are encoded as base64 proto of GeneratedCodeInfo message (see
// descriptor.proto). // descriptor.proto).
bool annotate_code; bool annotate_code;
}; };

@ -1067,7 +1067,7 @@ void Generator::FixContainingTypeInDescriptor(
} }
// Prints statements setting the message_type and enum_type fields in the // Prints statements setting the message_type and enum_type fields in the
// Python descriptor objects we've already output in ths file. We must // Python descriptor objects we've already output in the file. We must
// do this in a separate step due to circular references (otherwise, we'd // do this in a separate step due to circular references (otherwise, we'd
// just set everything in the initial assignment statements). // just set everything in the initial assignment statements).
void Generator::FixForeignFieldsInDescriptors() const { void Generator::FixForeignFieldsInDescriptors() const {

@ -479,7 +479,7 @@ TEST_F(FileDescriptorTest, FindExtensionByNumber) {
TEST_F(FileDescriptorTest, BuildAgain) { TEST_F(FileDescriptorTest, BuildAgain) {
// Test that if te call BuildFile again on the same input we get the same // Test that if we call BuildFile again on the same input we get the same
// FileDescriptor back. // FileDescriptor back.
FileDescriptorProto file; FileDescriptorProto file;
foo_file_->CopyTo(&file); foo_file_->CopyTo(&file);

Loading…
Cancel
Save