Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 15, 2023
1 parent 0c3fb10 commit 009b599
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exercises/concept/newsletter/.meta/example.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ pub fn create_log_file(path: String) -> Result(Nil, Nil) {
}

pub fn log_sent_email(path: String, email: String) -> Result(Nil, Nil) {
email
|> string.append("\n")
|> simplifile.append(path)
simplifile.append(path, email <> "\n")
|> result.nil_error
}

Expand Down

0 comments on commit 009b599

Please sign in to comment.