Skip to content

Commit

Permalink
Fix comment syntax in any.proto (#8792)
Browse files Browse the repository at this point in the history
* Fix comment syntax in any.proto

Remove extra spaces which cause incorrect indentation in godoc.
Remove the "====" style title which is not rendered by godoc.

* Run ./generate_descriptor_proto.sh
  • Loading branch information
chrisbainbridge committed Oct 27, 2021
1 parent 1d2e8d9 commit 65852d6
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
6 changes: 3 additions & 3 deletions csharp/src/Google.Protobuf/WellKnownTypes/Any.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static partial class AnyReflection {
/// foo = any.unpack(Foo.class);
/// }
///
/// Example 3: Pack and unpack a message in Python.
/// Example 3: Pack and unpack a message in Python.
///
/// foo = Foo(...)
/// any = Any()
Expand All @@ -75,7 +75,7 @@ public static partial class AnyReflection {
/// any.Unpack(foo)
/// ...
///
/// Example 4: Pack and unpack a message in Go
/// Example 4: Pack and unpack a message in Go
///
/// foo := &pb.Foo{...}
/// any, err := anypb.New(foo)
Expand All @@ -95,7 +95,7 @@ public static partial class AnyReflection {
/// name "y.z".
///
/// JSON
/// ====
///
/// The JSON representation of an `Any` value uses the regular
/// representation of the deserialized, embedded message, with an
/// additional field `@type` which contains the type URL. Example:
Expand Down
6 changes: 3 additions & 3 deletions objectivec/GPBAny.pbobjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions php/src/Google/Protobuf/Any.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/google/protobuf/any.proto
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ option objc_class_prefix = "GPB";
// foo = any.unpack(Foo.class);
// }
//
// Example 3: Pack and unpack a message in Python.
// Example 3: Pack and unpack a message in Python.
//
// foo = Foo(...)
// any = Any()
Expand All @@ -74,7 +74,7 @@ option objc_class_prefix = "GPB";
// any.Unpack(foo)
// ...
//
// Example 4: Pack and unpack a message in Go
// Example 4: Pack and unpack a message in Go
//
// foo := &pb.Foo{...}
// any, err := anypb.New(foo)
Expand All @@ -95,7 +95,7 @@ option objc_class_prefix = "GPB";
//
//
// JSON
// ====
//
// The JSON representation of an `Any` value uses the regular
// representation of the deserialized, embedded message, with an
// additional field `@type` which contains the type URL. Example:
Expand Down

0 comments on commit 65852d6

Please sign in to comment.