Browse Source

[libcxx] [test] Fix comment typos.

No functional change, no code review.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@294160 91177308-0d34-0410-b5e6-96231b3b80d8
Stephan T. Lavavej 8 years ago
parent
commit
19ab479cc2

+ 3 - 3
test/libcxx/utilities/function.objects/func.require/invoke_helpers.h

@@ -129,7 +129,7 @@ private:
 };
 };
 
 
 //==============================================================================
 //==============================================================================
-// DerivedFromBase - A type that derives from it's template argument 'Base'
+// DerivedFromBase - A type that derives from its template argument 'Base'
 template <class Base>
 template <class Base>
 struct DerivedFromType : public Base {
 struct DerivedFromType : public Base {
     DerivedFromType() : Base() {}
     DerivedFromType() : Base() {}
@@ -138,7 +138,7 @@ struct DerivedFromType : public Base {
 };
 };
 
 
 //==============================================================================
 //==============================================================================
-// DerefToType - A type that dereferences to it's template argument 'To'.
+// DerefToType - A type that dereferences to its template argument 'To'.
 //   The cv-ref qualifiers of the 'DerefToType' object do not propagate
 //   The cv-ref qualifiers of the 'DerefToType' object do not propagate
 //   to the resulting 'To' object.
 //   to the resulting 'To' object.
 template <class To>
 template <class To>
@@ -154,7 +154,7 @@ struct DerefToType {
 };
 };
 
 
 //==============================================================================
 //==============================================================================
-// DerefPropToType - A type that dereferences to it's template argument 'To'.
+// DerefPropToType - A type that dereferences to its template argument 'To'.
 //   The cv-ref qualifiers of the 'DerefPropToType' object propagate
 //   The cv-ref qualifiers of the 'DerefPropToType' object propagate
 //   to the resulting 'To' object.
 //   to the resulting 'To' object.
 template <class To>
 template <class To>

+ 2 - 2
test/std/experimental/filesystem/fs.filesystem.synopsis/file_time_type.pass.cpp

@@ -18,8 +18,8 @@
 #include <type_traits>
 #include <type_traits>
 
 
 // system_clock is used because it meets the requirements of TrivialClock,
 // system_clock is used because it meets the requirements of TrivialClock,
-// and it's resolution and range of system_clock should match the operating
-// systems file time type.
+// and the resolution and range of system_clock should match the operating
+// system's file time type.
 typedef std::chrono::system_clock              ExpectedClock;
 typedef std::chrono::system_clock              ExpectedClock;
 typedef std::chrono::time_point<ExpectedClock> ExpectedTimePoint;
 typedef std::chrono::time_point<ExpectedClock> ExpectedTimePoint;
 
 

+ 1 - 1
test/std/utilities/tuple/tuple.tuple/tuple.apply/make_from_tuple.pass.cpp

@@ -66,7 +66,7 @@ constexpr bool do_constexpr_test(Tuple&& tup) {
     return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup;
     return std::make_from_tuple<Tp>(std::forward<Tuple>(tup)).args == tup;
 }
 }
 
 
-// Needed by do_forwarding_test() since it compare pairs of different types.
+// Needed by do_forwarding_test() since it compares pairs of different types.
 template <class T1, class T2, class U1, class U2>
 template <class T1, class T2, class U1, class U2>
 inline bool operator==(const std::pair<T1, T2>& lhs, const std::pair<U1, U2>& rhs) {
 inline bool operator==(const std::pair<T1, T2>& lhs, const std::pair<U1, U2>& rhs) {
     return lhs.first == rhs.first && lhs.second == rhs.second;
     return lhs.first == rhs.first && lhs.second == rhs.second;

+ 1 - 1
test/std/utilities/tuple/tuple.tuple/tuple.cnstr/alloc.pass.cpp

@@ -96,7 +96,7 @@ int main()
     }
     }
     {
     {
         // Test that the uses-allocator default constructor does not evaluate
         // Test that the uses-allocator default constructor does not evaluate
-        // it's SFINAE when it otherwise shouldn't be selected. Do this by
+        // its SFINAE when it otherwise shouldn't be selected. Do this by
         // using 'NonDefaultConstructible' which will cause a compile error
         // using 'NonDefaultConstructible' which will cause a compile error
         // if std::is_default_constructible is evaluated on it.
         // if std::is_default_constructible is evaluated on it.
         using T = NonDefaultConstructible<>;
         using T = NonDefaultConstructible<>;