瀏覽代碼

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 年之前
父節點
當前提交
b60d9f2d6b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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.
   // long as the message is not destroyed.
   //
   //
   // Note that to use this method users need to include the header file
   // 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).
   // class templates).
   template <typename T>
   template <typename T>
   RepeatedFieldRef<T> GetRepeatedFieldRef(const Message& message,
   RepeatedFieldRef<T> GetRepeatedFieldRef(const Message& message,