Pārlūkot izejas kodu

Fix typo in docs/implementing_proto3_presence.md

Jiro Nishiguchi 4 gadi atpakaļ
vecāks
revīzija
8d1d530c51
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      docs/implementing_proto3_presence.md

+ 2 - 2
docs/implementing_proto3_presence.md

@@ -261,7 +261,7 @@ bool FieldHasPresence(const google::protobuf::FieldDescriptor* field) {
 Old:
 
 ```c++
-bool FieldIsInOneof(const google::protobuf::FielDescriptor* field) {
+bool FieldIsInOneof(const google::protobuf::FieldDescriptor* field) {
   return field->containing_oneof() != nullptr;
 }
 ```
@@ -269,7 +269,7 @@ bool FieldIsInOneof(const google::protobuf::FielDescriptor* field) {
 New:
 
 ```c++
-bool FieldIsInOneof(const google::protobuf::FielDescriptor* field) {
+bool FieldIsInOneof(const google::protobuf::FieldDescriptor* field) {
   // real_containing_oneof() returns nullptr for synthetic oneofs.
   return field->real_containing_oneof() != nullptr;
 }