]> git.lizzy.rs Git - rust.git/commit
Fix trailing space showing up in example
authorTitus <tituswormer@gmail.com>
Mon, 15 Aug 2022 14:18:00 +0000 (16:18 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Aug 2022 14:18:00 +0000 (16:18 +0200)
commit8e80c39d2ddfaf2fcba084db2e32b2db461d94c7
tree2331aed9e8a4b5dc8b95e64f12b26435df99d275
parent6ce76091c7cef21692a15dce1f0a4c415d245be4
Fix trailing space showing up in example

The current text is rendered as: U+005B ..= U+0060 ``[ \ ] ^ _ ` ``, or.
This patch changes that to render as: U+005B ..= U+0060 `` [ \ ] ^ _ ` ``, or

The reason for that, is that CommonMark has a solution for starting or ending inline code with a backtick/grave accent: padding both sides with a space, makes that padding disappear.
library/core/src/num/mod.rs