From 050ea39180cef2812c91dc3809583dc4f56993e9 Mon Sep 17 00:00:00 2001 From: Konstantin Prokofev Date: Thu, 18 May 2023 08:51:16 +0300 Subject: [PATCH] Fix doc example for break from retryer on success --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 20f20e682..90ccd8917 100644 --- a/README.md +++ b/README.md @@ -412,6 +412,7 @@ for i := 0; i < retries; i++ { if err != nil { log.Fatalf("unexpected error %v", err) } + break } if err := w.Close(); err != nil {