Fetching details from the dictionary...

to change; to alter
to run counter to; to go against; to break (one's word)
to make a mistake (in); to err
師の教えを違えることなく忠実に守り続けた。
He faithfully adhered to his master's teachings without deviating.
約束を違えるような人は信用できない。
A person who breaks promises cannot be trusted.
道を違えてしまい目的地に着くのが遅れた。
I took a wrong turn and arrived at my destination late.