fix snippet

Fix error in doc, reported at: https://github.com/bitpay/bitcore/issues/337