From 629aba55dd10aa3e363679489df1bf9f486fa8c6 Mon Sep 17 00:00:00 2001 From: Protobuf Team Bot Date: Thu, 5 Dec 2024 15:06:51 -0800 Subject: [PATCH] Improve formatting on the proto_macro rustdoc. PiperOrigin-RevId: 703265499 --- rust/proto_macro.rs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/rust/proto_macro.rs b/rust/proto_macro.rs index 7eb17b9d2969d..18aea19989988 100644 --- a/rust/proto_macro.rs +++ b/rust/proto_macro.rs @@ -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; @@ -29,7 +32,8 @@ /// x + 1 /// } /// } -/// }); ``` +/// }); +/// ``` #[macro_export] macro_rules! proto { ($msgtype:ty { $($tt:tt)* }) => {