Skip to content

Commit 6a35ac9

Browse files
committed
[*.rs] cargo doc fixes
1 parent b9b38ee commit 6a35ac9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

core/src/codegen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ use std::collections::BTreeSet;
2424
/// # Arguments
2525
///
2626
/// * `name` - The name of the field (e.g., "email").
27-
/// * `ty` - The Rust type string (e.g., "String", "Option<i32>").
27+
/// * `ty` - The Rust type string (e.g., `String`, `Option<i32>`).
2828
/// * `pub_vis` - Whether the field should be public.
2929
/// * `indent_size` - Indentation level (spaces) for formatting context.
3030
///

core/src/oas.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct RouteParam {
3535
pub name: String,
3636
/// Whether it's from Path or Query
3737
pub source: ParamSource,
38-
/// Rust type (e.g. "Uuid", "i32", "Option<String>")
38+
/// Rust type (e.g. `Uuid`, `i32`, `Option<String>`)
3939
pub ty: String,
4040
}
4141

core/src/type_mapping.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct JsonSchema {
5555

5656
/// Trait for converting Rust type strings to JSON Schemas.
5757
pub trait TypeMapper {
58-
/// Maps a Rust type string (e.g., "Option<i32>") to a JSON Schema.
58+
/// Maps a Rust type string (e.g., `Option<i32>`) to a JSON Schema.
5959
fn map(&self, rust_type: &str) -> AppResult<JsonSchema>;
6060
}
6161

@@ -142,7 +142,7 @@ fn map_ast_type(ty: &ast::Type) -> AppResult<JsonSchema> {
142142
}
143143
}
144144

145-
/// Helper to handle types like Option<T> or Vec<T>.
145+
/// Helper to handle types like `Option<T>` or `Vec<T>`.
146146
fn handle_generic_wrapper<F>(
147147
segment: ast::PathSegment,
148148
make_nullable: bool,

0 commit comments

Comments
 (0)