Fixing typo

Replaced "register" with "resistor".