Documentation fix on sample source code

The example code doesn't compile without this patch as sym isn't a pointer.