THRIFT-3391 Wrong bool formatting in test server Client: Go Patch: Jens Geyer

This commit is contained in:
Jens Geyer 2015-10-16 21:33:39 +02:00
parent 145749c7a2
commit fa0796d332

View File

@ -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
}