mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
Code blocks with tilde also works like code block
This commit is contained in:
parent
259182b50b
commit
e3f32d13e1
5 changed files with 21 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue