Docs: fix example code
Thanks to Tom for spotting this and fixing the example

Signed-off-by: John Thornton <jthornton@gnipsel.com>