From 7c5162e7c2f9d466e96248b7482aa98350244e8b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 20 Jun 2026 00:15:21 +0900 Subject: docs(console): fence PHP examples in doc comments as `php` Ported docblocks embed PHP usage examples as indented (and bare-fenced) code blocks, which rustdoc compiled as Rust doctests and failed `cargo test`. Mark them as `php` so they render as code without being run. Co-Authored-By: Claude Opus 4.8 (1M context) --- crates/shirabe/src/config/json_config_source.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/shirabe/src') diff --git a/crates/shirabe/src/config/json_config_source.rs b/crates/shirabe/src/config/json_config_source.rs index 8580135..166d2fe 100644 --- a/crates/shirabe/src/config/json_config_source.rs +++ b/crates/shirabe/src/config/json_config_source.rs @@ -206,7 +206,7 @@ impl JsonConfigSource { } /// PHP: - /// ``` + /// ```php /// if (!array_is_list($config['repositories'] ?? [])) { convert the keyed map to a list } /// ``` fn normalize_repositories_to_list(root: &mut IndexMap>) { @@ -243,7 +243,7 @@ impl JsonConfigSource { } /// PHP: - /// ``` + /// ```php /// $config['repositories'] = array_values( /// array_filter( /// $config['repositories'] ?? [], -- cgit v1.3.1