I entered the wrong account number in a ledger then posted it before I caught the error. I'm showing a debit from the wrong account. How do I put the correct account number in?

I entered the wrong account number in a ledger then posted it before I caught the error. I'm showing a debit from the wrong account. How do I put the correct account number in?