Correcting example which was missing the `err` arg