Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw authored May 5, 2022
1 parent 9d9d3bf commit 4932348
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,9 @@ let user = Parse {
Already this can consume the beginning of the input:

```swift
// Use a mutable substring to verify what is consumed
var input = input[...]

try user.parse("1,") // 1
```

> Note that we use a `Substring` instead of `String` because it allows for more efficient mutations and copying. See the article ["String Abstractions"][string-abstractions-docs] for more information.
Next we want to take everything up until the next comma for the user's name, and then consume the comma:

```swift
Expand Down

0 comments on commit 4932348

Please sign in to comment.