Skip to content

Commit

Permalink
Improve formatting on the proto_macro rustdoc.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 703265499
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Dec 5, 2024
1 parent bfe46c5 commit 629aba5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions rust/proto_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
/// submessage is being defined as part of the original struct literal.
/// Introducing an expression using () or {} as the value of a field will
/// require another call to this macro in order to return a submessage
/// literal.``` /*
/// Given the following proto definition
/// literal.
///
/// ```rust,no_run
/// /*
/// Given the following proto definition:
/// message Data {
/// int32 number = 1;
/// string letters = 2;
Expand All @@ -29,7 +32,8 @@
/// x + 1
/// }
/// }
/// }); ```
/// });
/// ```
#[macro_export]
macro_rules! proto {
($msgtype:ty { $($tt:tt)* }) => {
Expand Down

0 comments on commit 629aba5

Please sign in to comment.