diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-06-20 00:15:21 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-06-20 00:15:21 +0900 |
| commit | 7c5162e7c2f9d466e96248b7482aa98350244e8b (patch) | |
| tree | 23290db5ebb3bea4f5f2c45dd9f148ca79f8c98e /crates/shirabe/src/config | |
| parent | 08ad403ed366ac5839cb63333b5ba2c5007c655e (diff) | |
| download | php-shirabe-7c5162e7c2f9d466e96248b7482aa98350244e8b.tar.gz php-shirabe-7c5162e7c2f9d466e96248b7482aa98350244e8b.tar.zst php-shirabe-7c5162e7c2f9d466e96248b7482aa98350244e8b.zip | |
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) <noreply@anthropic.com>
Diffstat (limited to 'crates/shirabe/src/config')
| -rw-r--r-- | crates/shirabe/src/config/json_config_source.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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<String, Box<PhpMixed>>) { @@ -243,7 +243,7 @@ impl JsonConfigSource { } /// PHP: - /// ``` + /// ```php /// $config['repositories'] = array_values( /// array_filter( /// $config['repositories'] ?? [], |
