Document API: Fix in the example, improved code output.