-
Notifications
You must be signed in to change notification settings - Fork 925
/
Copy pathoriginal.rs
42 lines (41 loc) · 1.38 KB
/
original.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// rustfmt-wrap_comments: true
// rustfmt-format_code_in_doc_comments: true
/// Vestibulum elit nibh, rhoncus non, euismod sit amet, pretium eu, enim. Nunc
/// commodo ultricies dui.
///
/// Should not format with text attribute
/// ```text
/// .--------------.
/// | v
/// Park <- Idle -> Poll -> Probe -> Download -> Install -> Reboot
/// ^ ^ ' ' '
/// ' ' ' ' '
/// ' `--------' ' '
/// `---------------' ' '
/// `--------------------------' '
/// `-------------------------------------'
/// ```
///
/// Should not format with ignore attribute
/// ```ignore
/// .--------------.
/// | v
/// Park <- Idle -> Poll -> Probe -> Download -> Install -> Reboot
/// ^ ^ ' ' '
/// ' ' ' ' '
/// ' `--------' ' '
/// `---------------' ' '
/// `--------------------------' '
/// `-------------------------------------'
/// ```
///
/// Should format with rust attribute
/// ```rust
/// let x = 42;
/// ```
///
/// Should format with no attribute as it defaults to rust
/// ```
/// let x = 42;
/// ```
fn func() {}