From 7193d9fa95837be0e495e4d357391dc9ea05a802 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Mon, 8 Feb 2016 15:09:34 +0000 Subject: [clang-tidy] Fix an error in .rst llvm-svn: 260099 --- .../docs/clang-tidy/checks/misc-incorrect-roundings.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'clang-tools-extra/docs/clang-tidy') 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. -- cgit v1.2.3