diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-12-20 08:51:16 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-20 08:51:16 +0100 |
| commit | 9888ef77c584d2950296a44e9abb15156f1305de (patch) | |
| tree | 04d883771eec3f7d2014ba257041919e4ac9fc9d | |
| parent | 1abbc3f01bd36f632bfecce5ecc7074c7e694c43 (diff) | |
| parent | 1b11ce26fa08b7f2a200fe1f4a21c7f580f354a5 (diff) | |
| download | rust-9888ef77c584d2950296a44e9abb15156f1305de.tar.gz rust-9888ef77c584d2950296a44e9abb15156f1305de.zip | |
Rollup merge of #105933 - taiki-e:doc-cfg, r=GuillaumeGomez
Add readable rustdoc display for tvOS and watchOS They are currently displayed as `target_os="..."` in rustdoc, but it would be nice to have readable display like in iOS and other OSs. <img width="487" alt="cfg" src="https://user-images.githubusercontent.com/43724913/208579395-fd5cf276-8171-47ab-bbed-23e40bb7af11.png">
| -rw-r--r-- | src/librustdoc/clean/cfg.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/librustdoc/clean/cfg.rs b/src/librustdoc/clean/cfg.rs index 1843a21205c..f1853f3697d 100644 --- a/src/librustdoc/clean/cfg.rs +++ b/src/librustdoc/clean/cfg.rs @@ -507,7 +507,9 @@ impl<'a> fmt::Display for Display<'a> { "openbsd" => "OpenBSD", "redox" => "Redox", "solaris" => "Solaris", + "tvos" => "tvOS", "wasi" => "WASI", + "watchos" => "watchOS", "windows" => "Windows", _ => "", }, |
