Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

docs: Fix typos in "Code style and conventions" documentation.

Harsh kumar jadond101bdb28b66
diff --git a/docs/contributing/code-style.md b/docs/contributing/code-style.md
index 22bff0c1572..74caebd0c1c 100644
--- a/docs/contributing/code-style.md
+++ b/docs/contributing/code-style.md
@@ -2,7 +2,7 @@
This page documents code style policies that every Zulip developer
should understand. We aim for this document to be short and focused
-only on details that cannot be easily enforced another way (e.g.,
+only on details that cannot be easily enforced in another way (e.g.,
through linters, automated tests, or subsystem design that makes classes
of mistakes unlikely). This approach minimizes the cognitive
load of ensuring a consistent coding style for both contributors and
@@ -55,7 +55,7 @@ You can run all of the linters at once:
$ ./tools/lint
```
-Note that that takes a little time. `./tools/lint` runs many
+Note that will take a little time. `./tools/lint` runs many
lint checks in parallel, including:
- JavaScript ([ESLint](https://eslint.org/),
@@ -222,7 +222,7 @@ avoided in new code.
## HTML and CSS
See the documentation on [HTML and CSS](../subsystems/html-css.md)
-for guidance on conventions in those language.
+for guidance on conventions in those languages.
## Dangerous constructs in Django
@@ -270,7 +270,7 @@ In our Django code, never do direct `UserProfile.objects.get(email=foo)`
database queries. Instead always use `get_user_profile_by_{email,id}`.
There are 3 reasons for this:
-1. It's guaranteed to correctly do a case-inexact lookup
+1. It's guaranteed to correctly do a case-insensitive lookup
2. It fetches the user object from remote cache, which is faster
3. It always fetches a UserProfile object which has been queried
using `.select_related()` ([see above](#avoid-excessive-database-queries)!),