]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #105539 - GuillaumeGomez:hashtag-prepended-lines-non-rust, r=notriddle
authorMatthias Krüger <matthias.krueger@famsik.de>
Sun, 11 Dec 2022 08:51:57 +0000 (09:51 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Dec 2022 08:51:57 +0000 (09:51 +0100)
commitdd00582bc878c0e48f13ef46e115af3a8668aa4e
treee732cdfb8a102576b17a4d877cff6959fe3befdc
parent2daa3bcbc2c2dcd05312a176cf0bc50713dffacd
parentbc63c0edc0d1e82302305a479f53aa1137e96179
Rollup merge of #105539 - GuillaumeGomez:hashtag-prepended-lines-non-rust, r=notriddle

rustdoc: Only hide lines starting with `#` in rust code blocks

Fixes https://github.com/rust-lang/rust/issues/105527.

So before approving, this is a big question: in rust code blocks, in a line starts with a `#`, we hide it in the output. However, should we do the same for non-rust code blocks too? I think it's a bit problematic to do it because `#` can be used for many things but I prefer to check first with everyone (might also be worth updating documentation too).

cc ``@rust-lang/rustdoc``
r? ``@notriddle``