From 184f584b0a1d7c3c22757084c721f503214bbcbf Mon Sep 17 00:00:00 2001 From: Deanna Garcia Date: Fri, 16 Sep 2022 19:26:52 +0000 Subject: [PATCH] Fix spelling --- .github/workflows/codespell.yml | 2 +- conformance/conformance_test.h | 2 +- csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs | 2 +- objectivec/GPBCodedInputStream.h | 2 +- python/google/protobuf/internal/message_test.py | 2 +- src/google/protobuf/descriptor.h | 2 +- src/google/protobuf/text_format.cc | 4 ++-- update_version.py | 2 +- 8 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 497e811c8bba..b76b0576e4c7 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -13,4 +13,4 @@ jobs: with: check_filenames: true skip: ./.git,./conformance/third_party,*.snk,*.pb,*.pb.cc,*.pb.h,./src/google/protobuf/testdata,./objectivec/Tests,./python/compatibility_tests/v2.5.0/tests/google/protobuf/internal,./.github/workflows/codespell.yml - ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin,sur" + ignore_words_list: "alow,alse,ba,cleare,copyable,cloneable,dedup,dur,errorprone,falsy,files',fo,fundementals,hel,importd,inout,leapyear,nd,nin,ois,ons,parseable,process',ro,te,testof,ue,unparseable,wasn,wee,gae,keyserver,objext,od,optin,sur" diff --git a/conformance/conformance_test.h b/conformance/conformance_test.h index 76bd1bc3f1c9..81af15f27977 100644 --- a/conformance/conformance_test.h +++ b/conformance/conformance_test.h @@ -124,7 +124,7 @@ class ForkPipeRunner : public ConformanceTestRunner { // class MyConformanceTestSuite : public ConformanceTestSuite { // public: // void RunSuiteImpl() { -// // INSERT ACTURAL TESTS. +// // INSERT ACTUAL TESTS. // } // }; // diff --git a/csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs b/csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs index 9664559df249..ca874f9885e9 100644 --- a/csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs +++ b/csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs @@ -93,7 +93,7 @@ public IList GetExtensionsInDeclarationOrder(MessageDescriptor /// /// Returns a readonly list of all the extensions define in this type that extend - /// the provided descriptor type in accending field order + /// the provided descriptor type in ascending field order /// public IList GetExtensionsInNumberOrder(MessageDescriptor descriptor) { diff --git a/objectivec/GPBCodedInputStream.h b/objectivec/GPBCodedInputStream.h index fbe5009c92b8..1886ccf61b6b 100644 --- a/objectivec/GPBCodedInputStream.h +++ b/objectivec/GPBCodedInputStream.h @@ -220,7 +220,7 @@ CF_EXTERN_C_END /** * Moves the limit to the given byte offset starting at the current location. * - * @exception GPBCodedInputStreamException If the requested bytes exceeed the + * @exception GPBCodedInputStreamException If the requested bytes exceed the * current limit. * * @param byteLimit The number of bytes to move the limit, offset to the current diff --git a/python/google/protobuf/internal/message_test.py b/python/google/protobuf/internal/message_test.py index 6ed1f20ef5f4..d691634b2790 100644 --- a/python/google/protobuf/internal/message_test.py +++ b/python/google/protobuf/internal/message_test.py @@ -2166,7 +2166,7 @@ def testMapIteration(self): def testMapItems(self): # Map items used to have strange behaviors when use c extension. Because - # [] may reorder the map and invalidate any exsting iterators. + # [] may reorder the map and invalidate any existing iterators. # TODO(jieluo): Check if [] reordering the map is a bug or intended # behavior. msg = map_unittest_pb2.TestMap() diff --git a/src/google/protobuf/descriptor.h b/src/google/protobuf/descriptor.h index e74e355b5a38..0eeee54ac2ba 100644 --- a/src/google/protobuf/descriptor.h +++ b/src/google/protobuf/descriptor.h @@ -881,7 +881,7 @@ class PROTOBUF_EXPORT FieldDescriptor : private internal::SymbolBase { // formats the default value appropriately and returns it as a string. // Must have a default value to call this. If quote_string_type is true, then - // types of CPPTYPE_STRING whill be surrounded by quotes and CEscaped. + // types of CPPTYPE_STRING will be surrounded by quotes and CEscaped. std::string DefaultValueAsString(bool quote_string_type) const; // Helper function that returns the field type name for DebugString. diff --git a/src/google/protobuf/text_format.cc b/src/google/protobuf/text_format.cc index 8b20d76df9d8..dd9e84a722d9 100644 --- a/src/google/protobuf/text_format.cc +++ b/src/google/protobuf/text_format.cc @@ -975,7 +975,7 @@ class TextFormat::Parser::ParserImpl { } // Consumes an identifier and saves its value in the identifier parameter. - // Returns false if the token is not of type IDENTFIER. + // Returns false if the token is not of type IDENTIFIER. bool ConsumeIdentifier(std::string* identifier) { if (LookingAtType(io::Tokenizer::TYPE_IDENTIFIER)) { *identifier = tokenizer_.current().text; @@ -2272,7 +2272,7 @@ class MapEntryMessageComparator { namespace internal { class MapFieldPrinterHelper { public: - // DynamicMapSorter::Sort cannot be used because it enfores syncing with + // DynamicMapSorter::Sort cannot be used because it enforces syncing with // repeated field. static bool SortMap(const Message& message, const Reflection* reflection, const FieldDescriptor* field, diff --git a/update_version.py b/update_version.py index 2c2b4890ebca..b6b3ae9e2f89 100755 --- a/update_version.py +++ b/update_version.py @@ -67,7 +67,7 @@ def RewriteXml(filename, rewriter, add_xml_prefix=True): # document.toxml() always prepend the XML version without inserting new line. # We wants to preserve as much of the original formatting as possible, so we # will remove the default XML version and replace it with our custom one when - # whever necessary. + # whenever necessary. content = document.toxml().replace('', '') file_handle = open(filename, 'wb') if add_xml_prefix: