docs(*): fixes #1007 - fix syntax error in sample code

Also add qq.format to util docs

[skip ci]