summaryrefslogtreecommitdiff
path: root/test/go
diff options
context:
space:
mode:
authorJens Geyer <jensg@apache.org>2015-10-16 21:33:39 +0200
committerJens Geyer <jensg@apache.org>2015-10-16 21:35:34 +0200
commitfa0796d33208eadafb6f42964c8ef29d7751bfc2 (patch)
tree04cf0b67c8333fdcc4bee08d9e6b72a9a720f871 /test/go
parent145749c7a2692a29e2c7fc4088e336e37a2ff7e3 (diff)
downloadthrift-fa0796d33208eadafb6f42964c8ef29d7751bfc2.tar.gz
THRIFT-3391 Wrong bool formatting in test server Client: Go Patch: Jens Geyer
Diffstat (limited to 'test/go')
-rw-r--r--test/go/src/common/printing_handler.go4
1 files 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
}