Skip to content

Commit d98b4b8

Browse files
author
Conor
committed
spell
1 parent 52da34a commit d98b4b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/core/promise.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ struct awaitable : std::suspend_always {
179179

180180
frame_type<Context> &frame = parent.promise().frame;
181181

182-
// No syncronisation is done via exception_bit, hence we can use relaxed atomics and
183-
// rely on the usual fork/join syncronisation to ensure memory ordering.
182+
// No synchronisation is done via exception_bit, hence we can use relaxed atomics and
183+
// rely on the usual fork/join synchronisation to ensure memory ordering.
184184
if (frame.atomic_except().exchange(1, std::memory_order_relaxed) == 0) {
185185
}
186186
}
@@ -192,7 +192,7 @@ struct awaitable : std::suspend_always {
192192
// TODO: Add tests for exception/cancellation handling in fork/call.
193193

194194
if (!self.child || parent.promise().frame.is_cancelled()) [[unlikely]] {
195-
// Noop if an exception was thrown or cancelled.
195+
// Noop if an exception was thrown or canceled.
196196
// Must clean-up the child that will never be resumed.
197197
return self.child->handle().destroy(), parent;
198198
}

0 commit comments

Comments
 (0)