Skip to content

Commit cc8c769

Browse files
chore: sync code snippets via snipsync (#4330)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 1a5b90e commit cc8c769

7 files changed

Lines changed: 166 additions & 134 deletions

File tree

docs/develop/go/cancellation.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func YourWorkflow(ctx workflow.Context) error {
5252
WaitForCancellation: true,
5353
}
5454
defer func() {
55-
// This logic ensures cleanup only happens if there is a Cancellation error
55+
// This logic ensures cleanup only happens if there is a Cancelation error
5656
if !errors.Is(ctx.Err(), workflow.ErrCanceled) {
5757
return
5858
}

0 commit comments

Comments
 (0)