Skip to content

Commit c09008f

Browse files
authored
Update Concurrency.md
Fix typos
1 parent 1f5ce57 commit c09008f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ the code below converts measured temperatures from Fahrenheit to Celsius:
10901090

10911091
```swift
10921092
extension TemperatureLogger {
1093-
func convertFarenheitToCelsius() {
1093+
func convertFahrenheitToCelsius() {
10941094
measurements = measurements.map { measurement in
10951095
(measurement - 32) * 5 / 9
10961096
}
@@ -1113,7 +1113,7 @@ while unit conversion is in progress.
11131113
In addition to writing code in an actor
11141114
that protects temporary invalid state by omitting potential suspension points,
11151115
you can move that code into a synchronous method.
1116-
The `convertFarenheitToCelsius()` method above is a synchronous method,
1116+
The `convertFahrenheitToCelsius()` method above is a synchronous method,
11171117
so it's guaranteed to *never* contain potential suspension points.
11181118
This function encapsulates the code
11191119
that temporarily makes the data model inconsistent,

0 commit comments

Comments
 (0)