Skip to content

Commit f6d8f20

Browse files
authored
Update doc comment to link to name field without compilation warning (#1595)
1 parent 0685f67 commit f6d8f20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/meta/doc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ impl Person {
4444
4545
/// Gives a friendly hello!
4646
///
47-
/// Says "Hello, [name]" to the `Person` it is called on.
47+
/// Says "Hello, [name](Person::name)" to the `Person` it is called on.
4848
pub fn hello(& self) {
4949
println!("Hello, {}!", self.name);
5050
}

0 commit comments

Comments
 (0)