Question about simple perceptron code
I suspect the book's English explanation is probably a simplification (or maybe it has adopted the standard convention of adding an extra dimension to x that holds a constant value $1$).  It seems like most likely you've already given the explanation; it's adding the bias value.