Internal Code Change
PiperOrigin-RevId: 516207118
diff --git a/docs/implementing_proto3_presence.md b/docs/implementing_proto3_presence.md
index 4abfbd5..3f09565 100644
--- a/docs/implementing_proto3_presence.md
+++ b/docs/implementing_proto3_presence.md
@@ -237,9 +237,8 @@
Old:
```c++
-bool MessageHasPresence(const google::protobuf::Descriptor* message) {
- return message->file()->syntax() ==
- google::protobuf::FileDescriptor::SYNTAX_PROTO2;
+bool MessageHasPresence(const google::protobuf::FieldDescriptor* field) {
+ return field->has_presence();
}
```