Skip to content

Commit f989059

Browse files
authored
Merge pull request #7 from ghost/patch-1
Update constructor.rs
2 parents 69f4bbe + bbba97b commit f989059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter-one/src/bin/constructor.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ impl NameLength {
1919
fn new(name: &str) -> Self {
2020
NameLength {
2121
length: name.len(),
22-
name.to_string(),
22+
name: name.to_string(),
2323
}
2424
}
2525

0 commit comments

Comments
 (0)