We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 69f4bbe + bbba97b commit f989059Copy full SHA for f989059
chapter-one/src/bin/constructor.rs
@@ -19,7 +19,7 @@ impl NameLength {
19
fn new(name: &str) -> Self {
20
NameLength {
21
length: name.len(),
22
- name.to_string(),
+ name: name.to_string(),
23
}
24
25
0 commit comments