diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-12 14:46:08 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2009-10-12 14:46:08 +0000 |
commit | 8040cd3cfd7b87661c08ca916daf355593dd8ffa (patch) | |
tree | 611b8930c912c03403d721f81e51788a42c125df /docs/CodingStandards.html | |
parent | 8746929ff948a11a31b745437c8e448b91450959 (diff) |
Documentation: Perform automated correction of common typos.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83849 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodingStandards.html')
-rw-r--r-- | docs/CodingStandards.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/CodingStandards.html b/docs/CodingStandards.html index 894521650a..ee9443d164 100644 --- a/docs/CodingStandards.html +++ b/docs/CodingStandards.html @@ -303,7 +303,7 @@ for debate.</p> <div class="doc_text"> <p>In all cases, prefer spaces to tabs in source files. People have different -prefered indentation levels, and different styles of indentation that they +preferred indentation levels, and different styles of indentation that they like... this is fine. What isn't is that different editors/viewers expand tabs out to different tab stops. This can cause your code to look completely unreadable, and it is not worth dealing with.</p> @@ -491,7 +491,7 @@ most cases, you simply don't need the definition of a class... and not <b>must</b> include all of the header files that you are using -- you can include them either directly or indirectly (through another header file). To make sure that you don't -accidently forget to include a header file in your module header, make sure to +accidentally forget to include a header file in your module header, make sure to include your module header <b>first</b> in the implementation file (as mentioned above). This way there won't be any hidden dependencies that you'll find out about later...</p> @@ -790,7 +790,7 @@ locality.</p> <div class="doc_text"> <p>Use the "<tt>assert</tt>" function to its fullest. Check all of your -preconditions and assumptions, you never know when a bug (not neccesarily even +preconditions and assumptions, you never know when a bug (not necessarily even yours) might be caught early by an assertion, which reduces debugging time dramatically. The "<tt><cassert></tt>" header file is probably already included by the header files you are using, so it doesn't cost anything to use |