From d613d817c1815ed23c056d8fc54535871518d3be Mon Sep 17 00:00:00 2001 From: Sergey Mudrik Date: Sun, 12 Mar 2017 20:56:40 +0300 Subject: [PATCH] Update example --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3e503d1..6f1ad2d 100644 --- a/README.md +++ b/README.md @@ -167,12 +167,14 @@ type AWKVars struct { } }).Discard() - fmt.Println("Price sum:", sum, err) + if err != nil { + fmt.Println("Price sum:", sum) + } ``` Output: ``` -Price sum: 27.81 nil +Price sum: 27.81 ```