Skip to content

Commit

Permalink
ドキュメントコメントの書式を微調整
Browse files Browse the repository at this point in the history
- コードブロック表記を使用して`MoveInfo`、`文字列型フィールドをMoveInfoに設定する補助関数`などを強調
- バッククォートを用いてコード要素を明確に表示
- ドキュメントの可読性を向上
  • Loading branch information
eda3 committed Mar 3, 2025
1 parent 7e666b9 commit beeafc3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/commands/update/framedata_json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//! `framedata_json.rs`
//!
//! Dustloop Wiki から取得したフレームデータ JSON を前処理し、
//! MoveInfo 構造体として整形するための機能群。
//! `MoveInfo` 構造体として整形するための機能群。
//! 不要なタグやエンティティの除去、各フィールドの補完処理を行う。
// 外部クレートおよびモジュールのインポート
Expand Down Expand Up @@ -164,7 +164,7 @@ fn format_input_name(input: &str, name: &str) -> String {
}
}

/// 文字列型フィールドをMoveInfoに設定する補助関数
/// `文字列型フィールドをMoveInfoに設定する補助関数`
fn set_string_fields(
move_data: &Data,
empty: &str,
Expand Down Expand Up @@ -323,7 +323,7 @@ fn set_float_fields(
)
}

/// 移動データからMoveInfo構造体を作成する関数
/// `移動データからMoveInfo構造体を作成する関数`
fn create_move_info(move_data: &Data, empty: &str) -> MoveInfo {
// 入力名の整形
let input_str = move_data.title.input.as_deref().unwrap_or("");
Expand Down

0 comments on commit beeafc3

Please sign in to comment.