From 2e05cc8d71c7e08543b9cb457831e0f9195c5e3c Mon Sep 17 00:00:00 2001 From: Andrew Sauber <90019405+asaub@users.noreply.github.com> Date: Tue, 14 Feb 2023 12:15:00 -0500 Subject: [PATCH] Correct timeout output in Go sample --- doc_source/golang-context.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc_source/golang-context.md b/doc_source/golang-context.md index e2898688..29edea1a 100644 --- a/doc_source/golang-context.md +++ b/doc_source/golang-context.md @@ -69,7 +69,7 @@ func LongRunningHandler(ctx context.Context) (string, error) { select { case <- timeoutChannel: - return "Finished before timing out.", nil + return "Timed out before finishing.", nil default: log.Print("hello!") @@ -81,4 +81,4 @@ func LongRunningHandler(ctx context.Context) (string, error) { func main() { lambda.Start(LongRunningHandler) } -``` \ No newline at end of file +```