General
Its or It's: A Developer's Guide to Common Grammar Mistakes in Code Documentation
Table of contents
The Quick RuleWhere Developers Mess This UpWhy This Matters in Technical WritingOther Common Developer Grammar MistakesHow a Code-Aware Grammar Checker HelpsDownload Our Free HandbookYou'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.
- 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.
❌ *"Fixed bug where timeout would occure after its 5 seconds"*
✅ *"Fixed bug where timeout would occur after its 5 seconds"*
❌ *"The API returns it's response body as JSON"*
✅ *"The API returns its response body as JSON"*
❌ *"Make sure it's dependencies are installed before running"*
✅ *"Make sure its dependencies are installed before running"*
❌ *"...// Check if it's value is null"*
✅ *"...// Check if its value is null"*
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.
| 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" |
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:
-
- "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.
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)*
> *"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.
Stop letting Grammarly break your code
16 AI tools built for developers. Code-aware parsing.
Or upgrade to Pro for 500 checks a day · All tools · No ads