]> git.lizzy.rs Git - rust.git/blob - tests/target/itemized-blocks/wrap.rs
Revert "Change config option from format_doc_comments to format_code_in_doc_comments."
[rust.git] / tests / target / itemized-blocks / wrap.rs
1 // rustfmt-wrap_comments: true
2 // rustfmt-format_doc_comments: true
3 // rustfmt-max_width: 50
4
5 //! This is a list:
6 //!  * Outer
7 //!  * Outer
8 //!   * Inner
9 //!   * Inner with lots of text so that it could
10 //!     be reformatted something something
11 //!     something lots of text so that it could be
12 //!     reformatted something something something
13 //!
14 //! This example shows how to configure fern to
15 //! output really nicely colored logs
16 //! - when the log level is error, the whole line
17 //!   is red
18 //! - when the log level is warn, the whole line
19 //!   is yellow
20 //! - when the log level is info, the level name
21 //!   is green and the rest of the line is white
22 //! - when the log level is debug, the whole line
23 //!   is white
24 //! - when the log level is trace, the whole line
25 //!   is gray ("bright black")
26
27 // This example shows how to configure fern to
28 // output really nicely colored logs
29 // - when the log level is error, the whole line
30 //   is red
31 //   - when the log level is warn, the whole line
32 //     is yellow
33 //     - when the log level is info, the level
34 //       name is green and the rest of the line is
35 //       white
36 //   - when the log level is debug, the whole line
37 //     is white
38 //   - when the log level is trace, the whole line
39 //     is gray ("bright black")
40
41 /// All the parameters ***except for
42 /// `from_theater`*** should be inserted as sent
43 /// by the remote theater, i.e., as passed to
44 /// [`Theater::send`] on the remote actor:
45 ///  * `from` is the sending (remote) [`ActorId`],
46 ///    as reported by the remote theater by
47 ///    theater-specific means
48 ///  * `to` is the receiving (local) [`ActorId`],
49 ///    as requested by the remote theater
50 ///  * `tag` is a tag that identifies the message
51 ///    type
52 ///  * `msg` is the (serialized) message
53 /// All the parameters ***except for
54 /// `from_theater`*** should be inserted as sent
55 /// by the remote theater, i.e., as passed to
56 /// [`Theater::send`] on the remote actor
57 fn func1() {}
58
59 /// All the parameters ***except for
60 /// `from_theater`*** should be inserted as sent
61 /// by the remote theater, i.e., as passed to
62 /// [`Theater::send`] on the remote actor:
63 ///  * `from` is the sending (remote) [`ActorId`],
64 ///    as reported by the remote theater by
65 ///    theater-specific means
66 ///  * `to` is the receiving (local) [`ActorId`],
67 ///    as requested by the remote theater
68 ///  * `tag` is a tag that identifies the message
69 ///    type
70 ///  * `msg` is the (serialized) message
71 /// ```
72 /// let x = 42;
73 /// ```
74 fn func2() {}
75
76 /// Look:
77 ///
78 /// ```
79 /// let x = 42;
80 /// ```
81 ///  * `from` is the sending (remote) [`ActorId`],
82 ///    as reported by the remote theater by
83 ///    theater-specific means
84 ///  * `to` is the receiving (local) [`ActorId`],
85 ///    as requested by the remote theater
86 ///  * `tag` is a tag that identifies the message
87 ///    type
88 ///  * `msg` is the (serialized) message
89 fn func3() {}