diff --git a/src/first-try/hello-world.md b/src/first-try/hello-world.md index fa0b3bb1..23006071 100644 --- a/src/first-try/hello-world.md +++ b/src/first-try/hello-world.md @@ -71,7 +71,7 @@ fn main() { let records = penguin_data.lines(); for (i, record) in records.enumerate() { - if i == 0 || record.trim().len() == 0 { + if i == 0 || record.trim().is_empty() { continue; }