Kevin Durant of the Golden State Warriors announced on Instagram that he underwent successful surgery Wednesday to repair the Achilles’ tendon in his right leg that had ruptured two days earlier during Game 5 of the N.B.A. finals.

Durant played in the game Monday night in Toronto after missing the previous nine playoff games with a calf injury. In his Instagram post, Durant said he was “hurting deeply, but I’m OK.”

“Basketball is my biggest love and I wanted to be out there that night because that’s what I do,” he wrote. “I wanted to help my teammates on our quest for the three peat.”