Code blocks with tilde also works like code block

This commit is contained in:
Lee Dogeon 2022-04-01 15:22:32 +09:00
parent 259182b50b
commit e3f32d13e1
5 changed files with 21 additions and 7 deletions

View file

@ -644,6 +644,11 @@ impl Foo {
/// let foobar = Foo::new().bar();
/// ```
///
/// ~~~rust,no_run
/// // code block with tilde.
/// let foobar = Foo::new().bar();
/// ~~~
///
/// ```
/// // functions
/// fn foo<T, const X: usize>(arg: i32) {