hi, it is not really an error, the example is using the shiftIn command with the count parameter set to 8 and 3 milliseconds delay, which is very near to the default, so it also works as you mention just invoking shiftIn(dataPin,clockPin,bitOrder)
shiftIn has different versions:
http://wiring.org.co/reference/shiftIn_.html