Fix code example

'err' was already defined.