One of the methods that I commonly use in our codebase is misspelled (and it predated me).This really irritates me not simply because it is mispelled but more importantly it makes me ALWAYS get the name wrong the first time I type it (and then I have to remember Oh, right, it should be mispelled to this...)I'm making a few changes around the original method. Should I take the opportunity to just rename the freaking method?
Fixing a spelling mistake in a method name
refactoring
Should I take the opportunity to just rename the freaking method?Absolutely.That said, if your code has been released as an API, you should also generally leave the misspelled method and have it forward to the correctly named method (marking it Obsolete if your language supports such things).