Skip to content
This repository was archived by the owner on Oct 23, 2025. It is now read-only.

Commit f6a2b59

Browse files
committed
Update obsolete macro docs
1 parent cd0802e commit f6a2b59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/human.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ enum Response {
162162
Flushed,
163163
}
164164

165-
/// Shorthand for writing the `render_for_humans` method of the `Render` trait
165+
/// Shorthand for writing the `render_for_humans` method of the `Render` trait
166166
///
167167
/// # Examples
168168
///
@@ -179,11 +179,10 @@ enum Response {
179179
/// }
180180
///
181181
/// impl Render for Message {
182-
/// // because `self` is a keyword, we need to use something else
182+
/// // we need to explicitly pass `self` here, similar to regular methods
183183
/// render_for_humans!(self -> [
184184
/// // compose output components
185185
/// text("Important notice from "),
186-
/// // refer to struct fields using the name you specified above
187186
/// text(&self.author), newline(),
188187
/// text("> "), text(&self.body),
189188
/// ]);

0 commit comments

Comments
 (0)