From f645c7ed07d2d82c8b2356245957d681cd7adbd2 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Fri, 26 Feb 2021 10:54:13 -0800 Subject: [PATCH] Fixed spelling errors surfaced by CodeSpell. --- .../com/google/protobuf/InvalidProtocolBufferException.java | 2 +- src/google/protobuf/compiler/cpp/cpp_file.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java b/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java index b47eeefe28..4b4303374c 100644 --- a/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java +++ b/java/core/src/main/java/com/google/protobuf/InvalidProtocolBufferException.java @@ -78,7 +78,7 @@ public class InvalidProtocolBufferException extends IOException { /* This write can be racy if the same exception is stored and then thrown by multiple custom * InputStreams on different threads. But since it only ever moves from false->true, there's no * problem. A thread checking this condition after catching this exception from a delegate - * stram of CodedInputStream is guaranteed to always observe true, because a write on the same + * stream of CodedInputStream is guaranteed to always observe true, because a write on the same * thread set the value when the exception left the delegate. A thread checking the same * condition with an exception created by CodedInputStream is guaranteed to always see false, * because the exception has not been exposed to any code that could publish it to other threads diff --git a/src/google/protobuf/compiler/cpp/cpp_file.cc b/src/google/protobuf/compiler/cpp/cpp_file.cc index d47a0d6fee..9a0c7ab651 100644 --- a/src/google/protobuf/compiler/cpp/cpp_file.cc +++ b/src/google/protobuf/compiler/cpp/cpp_file.cc @@ -856,8 +856,8 @@ void FileGenerator::GenerateReflectionInitializationCode(io::Printer* printer) { "};\n" // This function exists to be marked as weak. // It can significantly speed up compilation by breaking up LLVM's SCC in - // the .pb.cc tranlation units. Large translation units see a reduction of - // more than 35% of walltime for optimized builds. + // the .pb.cc translation units. Large translation units see a reduction + // of more than 35% of walltime for optimized builds. // Without the weak attribute all the messages in the file, including all // the vtables and everything they use become part of the same SCC through // a cycle like: