From fa0796d33208eadafb6f42964c8ef29d7751bfc2 Mon Sep 17 00:00:00 2001 From: Jens Geyer Date: Fri, 16 Oct 2015 21:33:39 +0200 Subject: [PATCH] THRIFT-3391 Wrong bool formatting in test server Client: Go Patch: Jens Geyer --- test/go/src/common/printing_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/go/src/common/printing_handler.go b/test/go/src/common/printing_handler.go index bc308b614..5fe3d5352 100644 --- a/test/go/src/common/printing_handler.go +++ b/test/go/src/common/printing_handler.go @@ -48,14 +48,14 @@ func (p *printingHandler) TestString(thing string) (r string, err error) { return thing, nil } -// Prints 'testBool("%d")' with thing as 'true' or 'false' +// Prints 'testBool("%t")' with thing as 'true' or 'false' // @param bool thing - the bool to print // @return bool - returns the bool 'thing' // // Parameters: // - Thing func (p *printingHandler) TestBool(thing bool) (r bool, err error) { - fmt.Printf("testBool(%d)\n", thing) + fmt.Printf("testBool(%t)\n", thing) return thing, nil }