Skip to content

Commit d60a419

Browse files
committed
reformat rustdoc
1 parent 6181a61 commit d60a419

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

src/lib.rs

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,18 @@ impl OpenapiSchema {
131131
}
132132
}
133133

134-
/**
135-
This trait needs to be implemented by every type that is being used in the OpenAPI Spec. It gives
136-
access to the [OpenapiSchema] of this type. It is provided for primitive types, String and the
137-
like. For use on your own types, there is a derive macro:
138-
139-
```
140-
# #[macro_use] extern crate openapi_type_derive;
141-
#
142-
#[derive(OpenapiType)]
143-
struct MyResponse {
144-
message: String
145-
}
146-
```
147-
*/
134+
/// This trait needs to be implemented by every type that is being used in the OpenAPI Spec. It gives
135+
/// access to the [OpenapiSchema] of this type. It is provided for primitive types, String and the
136+
/// like. For use on your own types, there is a derive macro:
137+
///
138+
/// ```
139+
/// # #[macro_use] extern crate openapi_type_derive;
140+
/// #
141+
/// #[derive(OpenapiType)]
142+
/// struct MyResponse {
143+
/// message: String
144+
/// }
145+
/// ```
148146
pub trait OpenapiType {
149147
fn schema() -> OpenapiSchema;
150148
}

0 commit comments

Comments
 (0)