doc: Fix tutorial for struct deref
doc: Fix an inexplicable error in a tutorial example

This code was wrong but apparently worked before removing struct
deref. I don't know why.