Skip to content

Commit e09c5db

Browse files
johnmccabeneild
authored andcommitted
Fix godoc examples for Any (#569)
An extra space was causing Examples 3 and 4 to render in Example 2's code block. This commit fixes those minor typos. Also removing the `====` denoting the JSON section will allow godoc to render a heading here. Signed-off-by: John McCabe <[email protected]>
1 parent bbd03ef commit e09c5db

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

ptypes/any/any.pb.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ptypes/any/any.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ option objc_class_prefix = "GPB";
6464
// foo = any.unpack(Foo.class);
6565
// }
6666
//
67-
// Example 3: Pack and unpack a message in Python.
67+
// Example 3: Pack and unpack a message in Python.
6868
//
6969
// foo = Foo(...)
7070
// any = Any()
@@ -74,7 +74,7 @@ option objc_class_prefix = "GPB";
7474
// any.Unpack(foo)
7575
// ...
7676
//
77-
// Example 4: Pack and unpack a message in Go
77+
// Example 4: Pack and unpack a message in Go
7878
//
7979
// foo := &pb.Foo{...}
8080
// any, err := ptypes.MarshalAny(foo)
@@ -92,7 +92,7 @@ option objc_class_prefix = "GPB";
9292
//
9393
//
9494
// JSON
95-
// ====
95+
//
9696
// The JSON representation of an `Any` value uses the regular
9797
// representation of the deserialized, embedded message, with an
9898
// additional field `@type` which contains the type URL. Example:

0 commit comments

Comments
 (0)