If you're resigning because the job hasn’t been a good fit, there's no point in being negative. You’re leaving the job, and you want to leave on good terms. Also, you never know when other employers might want to check on your employment history – so it’s best to leave with a clean slate.