lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 74a5391 1/3: Improve documentation: "3.0U" wa


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 74a5391 1/3: Improve documentation: "3.0U" was ill formed
Date: Thu, 13 Apr 2017 08:04:37 -0400 (EDT)

branch: master
commit 74a5391d99543250ae753fe19a457279df08e1e2
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Improve documentation: "3.0U" was ill formed
---
 bourn_cast.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bourn_cast.hpp b/bourn_cast.hpp
index 039efa6..9cfd14c 100644
--- a/bourn_cast.hpp
+++ b/bourn_cast.hpp
@@ -221,7 +221,7 @@ inline To bourn_cast(From from, std::true_type, 
std::true_type)
 ///   bourn_cast<int>  ((double)INFINITY); // Throws.
 ///   bourn_cast<float>(DBL_MAX);          // Throws: UB.
 ///   bourn_cast<unsigned int>(3.0);       // Returns 3U.
-///   bourn_cast<unsigned int>(3.14);      // Throws: 3.14 != 3.0U.
+///   bourn_cast<unsigned int>(3.14);      // Throws: 3.14 != 3U.
 /// Thus, value is preserved exactly, except for the roundoff expected
 /// when converting a floating-point value to a different floating-
 /// point type that can represent it only with a loss of precision.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]