What is the error in this sentence

If it ain’t broken,don’t fix it.

"ain't" is not used in standard English.

If it isn't broken, don't fix it.

🤷‍♂️🤔

The error in the sentence "If it ain't broken, don't fix it" is the use of the contraction "ain't." The word "ain't" is a colloquial and non-standard contraction of "is not" or "are not."

To explain how to correct the error, you can simply replace "ain't" with "isn't" to make the sentence grammatically correct. So, the corrected sentence would be "If it isn't broken, don't fix it."