[patch] tweak some libstdc++ comments

Jonathan Wakely jwakely.gcc@gmail.com
Sun Apr 28 19:44:00 GMT 2013


        * include/bits/hashtable_policy.h (_Hashtable_ebo_helper): Fix
        comment.
        * include/std/mutex (__recursive_mutex_base): Likewise.

Tested x86_64-linux, committed to trunk.
-------------- next part --------------
commit eebe0bf329438168c002754c4a0d5b7e1b59e6f5
Author: Jonathan Wakely <jwakely.gcc@gmail.com>
Date:   Sun Apr 28 12:49:20 2013 +0100

    	* include/bits/hashtable_policy.h (_Hashtable_ebo_helper): Fix
    	comment.
    	* include/std/mutex (__recursive_mutex_base): Likewise.

diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h
index 1cf6cb2..1c76af0 100644
--- a/libstdc++-v3/include/bits/hashtable_policy.h
+++ b/libstdc++-v3/include/bits/hashtable_policy.h
@@ -844,8 +844,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
   /**
    *  Primary class template _Hashtable_ebo_helper.
    *
-   *  Helper class using EBO when it is not forbidden, type is not
-   *  final, and when it worth it, type is empty.
+   *  Helper class using EBO when it is not forbidden (the type is not
+   *  final) and when it is worth it (the type is empty.)
    */
   template<int _Nm, typename _Tp,
 	   bool __use_ebo = !__is_final(_Tp) && __is_empty(_Tp)>
diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex
index 67f3418..3c666c1 100644
--- a/libstdc++-v3/include/std/mutex
+++ b/libstdc++-v3/include/std/mutex
@@ -78,7 +78,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
     __mutex_base& operator=(const __mutex_base&) = delete;
   };
 
-  // Common base class for std::recursive_mutex and std::timed_recursive_mutex
+  // Common base class for std::recursive_mutex and std::recursive_timed_mutex
   class __recursive_mutex_base
   {
   protected:


More information about the Gcc-patches mailing list