Răsfoiți Sursa

Fix include path to reflection.h in documentation

There is a note in the documentation to `Reflection::GetRepeatedFieldRef()`
about file `net/proto2/public/reflection.h` which contains a definition of
`RepeatedFieldRef`. Since there are few places in code with rewrite of
`net...` path to `google/protobuf/...` it looks like the first one is a
legacy path and should be renamed to `google/protobuf` in documentation
as well.
Aleksandr Parfenov 5 ani în urmă
părinte
comite
b60d9f2d6b
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/google/protobuf/message.h

+ 1 - 1
src/google/protobuf/message.h

@@ -740,7 +740,7 @@ class PROTOBUF_EXPORT Reflection final {
   // long as the message is not destroyed.
   //
   // Note that to use this method users need to include the header file
-  // "net/proto2/public/reflection.h" (which defines the RepeatedFieldRef
+  // "google/protobuf/reflection.h" (which defines the RepeatedFieldRef
   // class templates).
   template <typename T>
   RepeatedFieldRef<T> GetRepeatedFieldRef(const Message& message,