。
She did the right thing.
Literal
She [topic-は] correct thing [object-を] did.
正しいこと means 'the right thing' — 正しい (correct/right) + こと (thing/matter). A simple, morally affirming statement. The nominalizer こと turns the adjective into a noun: 'a correct thing.'