General

Its or It's: A Developer's Guide to Common Grammar Mistakes in Code Documentation

2026-10-16 · 6 min · Lint Team

You've probably seen it in a code review:

> *"The function returns its result after it's validation completes."*

That's a classic its vs it's mistake — and it's surprisingly common in technical writing. Even senior developers mix these up under pressure.

The Quick Rule



- its = possessive (belongs to it) → *The function returned its result.*
- it's = contraction of it is or it has → *It's broken. / It's been validated.*

Test: Can you replace it with it is? If yes, use it's. If no, use its.

Where Developers Mess This Up



1. Commit Messages


❌ *"Fixed bug where timeout would occure after its 5 seconds"*
✅ *"Fixed bug where timeout would occur after its 5 seconds"*

2. PR Descriptions


❌ *"The API returns it's response body as JSON"*
✅ *"The API returns its response body as JSON"*

3. READMEs


❌ *"Make sure it's dependencies are installed before running"*
✅ *"Make sure its dependencies are installed before running"*

4. Code Comments


❌ *"...// Check if it's value is null"*
✅ *"...// Check if its value is null"*

Why This Matters in Technical Writing



Bad grammar in docs isn't just cosmetic. It creates ambiguity:

- its result vs it's result — who/what owns the output?
- it's been validated vs its been validated — is the action complete?

In urgent situations (on-call incidents, security patches), clarity beats style. But both require correct grammar.

Other Common Developer Grammar Mistakes



| Mistake | Wrong | Right |
|---|---|---|
| its/it's | "it's function" | "its function" |
| there/their/they're | "there params" | "their params" |
| your/you're | "your welcome" | "you're welcome" |
| affect/effect | "the affect was expected" | "the effect was expected" |
| lie/lay | "lay the function down" | "lie the function down" |

How a Code-Aware Grammar Checker Helps



Generic checkers catch its/it's but then mangle your code. A code-aware checker like [Lint](https://tools.aicreditsapi.com/tools/grammar-check) catches the grammar mistake in your prose while leaving your identifiers untouched:

- config.its_timeout → protected (identifier)
- "The function returns its result" → checked (prose)

The free tier gives you 5 free uses/day with no signup. Try it on your last commit message.

Download Our Free Handbook



This is one of 10 guides in our free 23-page Developer Writing Handbook — covering PR descriptions, commit messages, API docs, and more.

→ [Download free](https://tools.aicreditsapi.com/tools/ebook)

---

*Related: [How to Write Commit Messages That Aren't Rejected](/tools/blog/how-to-write-error-free-commit-messages-2026) · [Grammar Checker for Markdown Files](/tools/blog/grammar-checker-for-markdown-files-keep-code-blocks-intact-2026)*
📌 Prices and tool count in this article may be outdated. Lint now ships 16 tools with Pro at $12/mo, or $60/year. See the current pricing page.
Try Lint free — no signup, code-aware
Free · no account needed · open full toolkit →
L
Lint Team
Lint Tools — AI writing for developers

Stop letting Grammarly break your code

16 AI tools built for developers. Code-aware parsing.

Try free — no signup View pricing
Or upgrade to Pro for 500 checks a day · All tools · No ads

Need more than free tools?

Unlock 500 checks a day, larger text capacity, and priority support.

View pricing → Upgrade Lint — Pro $12/mo or $60/yr
💬