diff options
author | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-08-10 18:30:14 +0000 |
---|---|---|
committer | Eugene Zelenko <eugene.zelenko@gmail.com> | 2016-08-10 18:30:14 +0000 |
commit | 12b0acc7274d2c39ba593be2adbb8c2a42e8809d (patch) | |
tree | 4fa30d493b0190f746291f33f79ce94a64838ebc | |
parent | cdfdb4f1109361be236cf1f0289bab40afd41ed4 (diff) | |
download | bcm5719-llvm-12b0acc7274d2c39ba593be2adbb8c2a42e8809d.tar.gz bcm5719-llvm-12b0acc7274d2c39ba593be2adbb8c2a42e8809d.zip |
[Documentation] Highlighting consistency and spelling mistake fix in Clang-tidy readability-else-after-return description.
llvm-svn: 278263
-rw-r--r-- | clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst b/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst index 11e9bdceaef..35cbfda147c 100644 --- a/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst +++ b/clang-tools-extra/docs/clang-tidy/checks/readability-else-after-return.rst @@ -6,8 +6,8 @@ readability-else-after-return `LLVM Coding Standards <http://llvm.org/docs/CodingStandards.html>`_ advises to reduce indentation where possible and where it makes understanding code easier. Early exit is one of the suggested enforcements of that. Please do not use -`else` or `else if` after something that interrupts control flow - like -`return`, `break`, `continue`, `throw`. +``else`` or ``else if`` after something that interrupts control flow - like +``return``, ``break``, ``continue``, ``throw``. The following piece of code illustrates how the check works. This piece of code: @@ -60,5 +60,5 @@ Would be transformed into: } -This checks helps to enforce this `Coding Standars recommendation +This checks helps to enforce this `Coding Standards recommendation <http://llvm.org/docs/CodingStandards.html#don-t-use-else-after-a-return>`_. |