mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-06 18:35:19 +00:00
THRIFT-3391 Wrong bool formatting in test server Client: Go Patch: Jens Geyer
This commit is contained in:
parent
145749c7a2
commit
fa0796d332
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user