Repository: thrift Updated Branches: refs/heads/master 145749c7a -> fa0796d33
THRIFT-3391 Wrong bool formatting in test server Client: Go Patch: Jens Geyer Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/fa0796d3 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/fa0796d3 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/fa0796d3 Branch: refs/heads/master Commit: fa0796d33208eadafb6f42964c8ef29d7751bfc2 Parents: 145749c Author: Jens Geyer <[email protected]> Authored: Fri Oct 16 21:33:39 2015 +0200 Committer: Jens Geyer <[email protected]> Committed: Fri Oct 16 21:35:34 2015 +0200 ---------------------------------------------------------------------- test/go/src/common/printing_handler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/fa0796d3/test/go/src/common/printing_handler.go ---------------------------------------------------------------------- diff --git a/test/go/src/common/printing_handler.go b/test/go/src/common/printing_handler.go index bc308b6..5fe3d53 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 }
