The difference has to do with the case of the noun. I'm no Pali scholar but I believe the first is nominative whereas the second is genitive or something like that.
To avoid all evil, to cultivate good, and to cleanse one's mind — this is the teaching of the Buddhas.
Uposatha Observance Club:
My Practice Blog: