Skip to content

Commit 9888ef7

Browse files
authored
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">
2 parents 1abbc3f + 1b11ce2 commit 9888ef7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/librustdoc/clean/cfg.rs

+2
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,9 @@ impl<'a> fmt::Display for Display<'a> {
507507
"openbsd" => "OpenBSD",
508508
"redox" => "Redox",
509509
"solaris" => "Solaris",
510+
"tvos" => "tvOS",
510511
"wasi" => "WASI",
512+
"watchos" => "watchOS",
511513
"windows" => "Windows",
512514
_ => "",
513515
},

0 commit comments

Comments
 (0)