Skip to content

Commit

Permalink
Fix godoc examples for Any (#569)
Browse files Browse the repository at this point in the history
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 <john@johnmccabe.net>
  • Loading branch information
johnmccabe authored and neild committed Mar 28, 2018
1 parent bbd03ef commit e09c5db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions ptypes/any/any.pb.go

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

6 changes: 3 additions & 3 deletions ptypes/any/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 := ptypes.MarshalAny(foo)
Expand All @@ -92,7 +92,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 e09c5db

Please sign in to comment.