]> git.lizzy.rs Git - rust.git/blob - tests/source/itemized-blocks/wrap.rs
14fc8daa2e9d374b16e0f9e2e01a43c12f7c50be
[rust.git] / tests / source / 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 be reformatted something something something lots of text so that it could be reformatted something something something
10 //!
11 //! This example shows how to configure fern to output really nicely colored logs
12 //! - when the log level is error, the whole line is red
13 //! - when the log level is warn, the whole line is yellow
14 //! - when the log level is info, the level name is green and the rest of the line is white
15 //! - when the log level is debug, the whole line is white
16 //! - when the log level is trace, the whole line is gray ("bright black")
17
18 // This example shows how to configure fern to output really nicely colored logs
19 // - when the log level is error, the whole line is red
20 //   - when the log level is warn, the whole line is yellow
21 //     - when the log level is info, the level name is green and the rest of the line is white
22 //   - when the log level is debug, the whole line is white
23 //   - when the log level is trace, the whole line is gray ("bright black")
24
25 /// All the parameters ***except for `from_theater`*** should be inserted as sent by the remote
26 /// theater, i.e., as passed to [`Theater::send`] on the remote actor:
27 ///  * `from` is the sending (remote) [`ActorId`], as reported by the remote theater by theater-specific means
28 ///  * `to` is the receiving (local) [`ActorId`], as requested by the remote theater
29 ///  * `tag` is a tag that identifies the message type
30 ///  * `msg` is the (serialized) message
31 /// All the parameters ***except for `from_theater`*** should be inserted as sent by the remote
32 /// theater, i.e., as passed to [`Theater::send`] on the remote actor
33 fn func1() {}
34
35 /// All the parameters ***except for `from_theater`*** should be inserted as sent by the remote
36 /// theater, i.e., as passed to [`Theater::send`] on the remote actor:
37 ///  * `from` is the sending (remote) [`ActorId`], as reported by the remote theater by theater-specific means
38 ///  * `to` is the receiving (local) [`ActorId`], as requested by the remote theater
39 ///  * `tag` is a tag that identifies the message type
40 ///  * `msg` is the (serialized) message
41 /// ```
42 /// let x =     42;
43 /// ```
44 fn func2() {}
45
46 /// Look:
47 ///
48 /// ```
49 /// let x =     42;
50 /// ```
51 ///  * `from` is the sending (remote) [`ActorId`], as reported by the remote theater by theater-specific means
52 ///  * `to` is the receiving (local) [`ActorId`], as requested by the remote theater
53 ///  * `tag` is a tag that identifies the message type
54 ///  * `msg` is the (serialized) message
55 fn func3() {}