summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/docs/clang-tidy
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2016-02-08 15:09:34 +0000
committerAlexander Kornienko <alexfh@google.com>2016-02-08 15:09:34 +0000
commit7193d9fa95837be0e495e4d357391dc9ea05a802 (patch)
tree62ee740470d1b32fc2dfb5517a6a810e1d876e0d /clang-tools-extra/docs/clang-tidy
parenta7faa5b92aa16c94eff11d1fcb7a650f061422a5 (diff)
downloadbcm5719-llvm-7193d9fa95837be0e495e4d357391dc9ea05a802.tar.gz
bcm5719-llvm-7193d9fa95837be0e495e4d357391dc9ea05a802.zip
[clang-tidy] Fix an error in .rst
llvm-svn: 260099
Diffstat (limited to 'clang-tools-extra/docs/clang-tidy')
-rw-r--r--clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst b/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst
index abe70b412b2..fa2780788b1 100644
--- a/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst
+++ b/clang-tools-extra/docs/clang-tidy/checks/misc-incorrect-roundings.rst
@@ -2,8 +2,10 @@ misc-incorrect-roundings
========================
Checks the usage of patterns known to produce incorrect rounding.
-Programmers often use
- (int)(double_expression + 0.5)
+Programmers often use::
+
+ (int)(double_expression + 0.5)
+
to round the double expression to an integer. The problem with this:
1. It is unnecessarily slow.
OpenPOWER on IntegriCloud