Fix non-compiling doc snippets.

Change-Id: I0e5160f18f89ed25882741d93410ea1860ed659a
Reviewed-by: Christian Stromme <christian.stromme@digia.com>