Skip to content

Commit

Permalink
Update instructions.md (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
mytiadorofieiev authored Mar 29, 2024
1 parent 258ec3d commit bb9899c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/concept/poetry-club/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ Finally the password you return is `SUPER!`, and you'll get in.

## 1. Split a string into individual lines

Implement the function `splitLines(_:)` that takes a `String` as input and splits it into an array of `String`s using newlines as delimiters.
Implement the function `splitOnNewlines(_:)` that takes a `String` as input and splits it into an array of `String`s using newlines as delimiters.

```swift
splitLines("Hello.\nHow are you?\n\nI'm doing fine.")
splitOnNewlines("Hello.\nHow are you?\n\nI'm doing fine.")
// => ["Hello." ,"How are you?", "", "I'm doing fine"].
```

Expand Down

0 comments on commit bb9899c

Please sign in to comment.