Skip to content

Commit 0e44ceb

Browse files
[NFC] Fixing typos on guides (#126)
1 parent 78dd4b5 commit 0e44ceb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Guides/Reductions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ these terms carry through as the name for the lazy sequences;
110110
[David Rönnqvist]: https://forums.swift.org/t/review-se-0045-add-scan-prefix-while-drop-while-and-iterate-to-the-stdlib/2382/8
111111
[Kyle Macomber]: https://github.com/apple/swift-algorithms/issues/25#issuecomment-709317894
112112

113-
### Comparison with other langauges
113+
### Comparison with other languages
114114

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

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

128128
**[Rust][Rust]:** Rust provides a `scan` function.

Guides/Trim.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ let result = myString.drop(while: \.isWhitespace)
101101
```
102102

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

107107
```swift

0 commit comments

Comments
 (0)