From c3abafc7eb86f90f17daa064782f4e5faad10ce3 Mon Sep 17 00:00:00 2001 From: David Hill Date: Thu, 28 Aug 2014 10:23:46 -0400 Subject: [PATCH] Println -> Printf when using formatting directives. This makes go vet happy. --- example_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_test.go b/example_test.go index ac1b3f8e..d23c9476 100644 --- a/example_test.go +++ b/example_test.go @@ -53,7 +53,7 @@ func ExampleBlockChain_ProcessBlock() { fmt.Printf("Failed to process block: %v\n", err) return } - fmt.Println("Block accepted. Is it an orphan?: %v", isOrphan) + fmt.Printf("Block accepted. Is it an orphan?: %v", isOrphan) // Output: // Failed to process block: already have block 000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f