Pin discrepancy in the stepper example

In the stepper example - https://docs.simplefoc.com/stepper_control_nucleo

The wiring instructions specify A0 and A1 for the encoder pins, but the code has

Encoder encoder = Encoder(A1, A2, 2048);