File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1090,7 +1090,7 @@ the code below converts measured temperatures from Fahrenheit to Celsius:
1090
1090
1091
1091
``` swift
1092
1092
extension TemperatureLogger {
1093
- func convertFarenheitToCelsius () {
1093
+ func convertFahrenheitToCelsius () {
1094
1094
measurements = measurements.map { measurement in
1095
1095
(measurement - 32 ) * 5 / 9
1096
1096
}
@@ -1113,7 +1113,7 @@ while unit conversion is in progress.
1113
1113
In addition to writing code in an actor
1114
1114
that protects temporary invalid state by omitting potential suspension points,
1115
1115
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,
1117
1117
so it's guaranteed to * never* contain potential suspension points.
1118
1118
This function encapsulates the code
1119
1119
that temporarily makes the data model inconsistent,
You can’t perform that action at this time.
0 commit comments