Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/strings_ii/strip_extra_whitespace.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Strip extra whitespace

If you have a `String` which might contains some "trailing" whitespace or "leading"
If you have a `String` which might contain some "trailing" whitespace or "leading"
whitespace, you can remove that by using the `.strip` method.

This will give a new `String` with both the leading and trailing whitespace removed.
Expand Down Expand Up @@ -36,4 +36,4 @@ void main() {
}
```

All of these methods are useful when you get input from human beings. Humans are generally pretty bad at seeing if they hit the spacebar one too many times.
All of these methods are useful when you get input from human beings. Humans are generally pretty bad at seeing if they hit the spacebar one too many times.