Paul specifically refers to the gospel which Peter had corrupted. That's teaching.Right--which is EXACTLY WHY Peter cannot bind or loose error. God cannot bind or loose error.
Are you referring to when Paul confronted Peter to his face about his hypocrisy?
That does not involve a teaching of Peter, but Peter's example.