a fait ce qu’il fallait
Elle a fait ce qu’il fallait.
Il a fait ce qu'il fallait.
Et elle a fait ce qu'il fallait.
— The Irony of Fate, or Enjoy Your Bath! (1976)
I think that I did the right thing.
Je pense que j’ai bien fait.
Nous avons fait ce qu'il fallait.
J'espère que j'ai fait la bonne chose.
I don't know whether I did the right thing by accepting.
Je ne sais pas si j’ai bien fait d’accepter.
Sami did the right thing, I think.
Sami a fait ce qu’il fallait, je crois.