diff --git a/doc/tribool.boostbook b/doc/tribool.boostbook index 80da397..29726b0 100644 --- a/doc/tribool.boostbook +++ b/doc/tribool.boostbook @@ -191,7 +191,7 @@ cout << boolalpha << x; // Produces "false", "true", or "indetermina string naming the indeterminate type is contained in the indeterminate_name facet. To replace the name of the indeterminate state, you need to imbue your - stream with a local containing a + stream with a local containing an indeterminate_name facet, e.g.: BOOST_TRIBOOL_THIRD_STATE(maybe) @@ -201,7 +201,7 @@ cout.imbue(test_locale); tribool x(maybe); cout << boolalpha << x << endl; // Prints "maybe" - If you C++ standard library implementation does not support + If your C++ standard library implementation does not support locales, tribool input/output will still work, but you will be unable to customize the strings printed/parsed when boolalpha is set. diff --git a/include/boost/logic/tribool.hpp b/include/boost/logic/tribool.hpp index b4c4a01..658507d 100644 --- a/include/boost/logic/tribool.hpp +++ b/include/boost/logic/tribool.hpp @@ -48,9 +48,9 @@ typedef bool (*indeterminate_keyword_t)(tribool, detail::indeterminate_t); /** * \brief Keyword and test function for the indeterminate tribool value * - * The \c indeterminate function has a dual role. It's first role is + * The \c indeterminate function has a dual role. Its first role is * as a unary function that tells whether the tribool value is in the - * "indeterminate" state. It's second role is as a keyword + * "indeterminate" state. Its second role is as a keyword * representing the indeterminate (just like "true" and "false" * represent the true and false states). If you do not like the name * "indeterminate", and would prefer to use a different name, see the diff --git a/include/boost/logic/tribool_io.hpp b/include/boost/logic/tribool_io.hpp index 2696dca..05d6789 100644 --- a/include/boost/logic/tribool_io.hpp +++ b/include/boost/logic/tribool_io.hpp @@ -140,7 +140,7 @@ class indeterminate_name : public std::locale::facet, private boost::noncopyable /// Returns the name for the indeterminate value string_type name() const { return name_; } - /// Uniquily identifies this facet with the locale. + /// Uniquely identifies this facet with the locale. static std::locale::id id; private: @@ -224,7 +224,7 @@ operator<<(std::basic_ostream& out, * function reads a \c long value from the input stream @p in and * converts that value to a tribool. If that value is 0, @p x becomes * \c false; if it is 1, @p x becomes \c true; if it is 2, @p becomes - * \c indetermine; otherwise, the operation fails (and the fail bit is + * \c indeterminate; otherwise, the operation fails (and the fail bit is * set on the input stream @p in). * * When (out.flags() & std::ios_base::boolalpha) != 0, this