Skip to content

Commit

Permalink
[NFC] Fixing typos on guides (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucianoPAlmeida authored Apr 9, 2021
1 parent 78dd4b5 commit 0e44ceb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Guides/Reductions.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ these terms carry through as the name for the lazy sequences;
[David Rönnqvist]: https://forums.swift.org/t/review-se-0045-add-scan-prefix-while-drop-while-and-iterate-to-the-stdlib/2382/8
[Kyle Macomber]: https://github.com/apple/swift-algorithms/issues/25#issuecomment-709317894

### Comparison with other langauges
### Comparison with other languages

**C++:** As of C++17, the `<algorithm>` library includes both
[`exclusive_scan`][C++ Exclusive] and [`inclusive_scan`][C++ Inclusive]
Expand All @@ -122,7 +122,7 @@ functions.
`Traversable` type, which is akin to Swift's `Sequence`.

**Python:** Python’s `itertools` includes an `accumulate` method. In version
3.3, a function paramenter was added. Version 3.8 added the optional initial
3.3, a function parameter was added. Version 3.8 added the optional initial
parameter.

**[Rust][Rust]:** Rust provides a `scan` function.
Expand Down
2 changes: 1 addition & 1 deletion Guides/Trim.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ let result = myString.drop(while: \.isWhitespace)
```

With a lazy filter that drops _all_ whitespace characters regardless of where they are in the string.
Besides that, the root `trim` leads to clearer, more conscise code, which is more aligned with other programming
Besides that, the root `trim` leads to clearer, more concise code, which is more aligned with other programming
languages:

```swift
Expand Down

0 comments on commit 0e44ceb

Please sign in to comment.