diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2013-10-07 02:37:18 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2013-10-07 02:37:18 +0000 |
commit | 4f44079a2ca1467d0d6a0bb053a338a6b6e795d6 (patch) | |
tree | 7a8c6c331232066bb7d7e53425d4f1918909b136 /libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp | |
parent | 61eae2e30c71a10d71cff5463d7c6a5b9a67f64c (diff) | |
download | bcm5719-llvm-4f44079a2ca1467d0d6a0bb053a338a6b6e795d6.tar.gz bcm5719-llvm-4f44079a2ca1467d0d6a0bb053a338a6b6e795d6.zip |
Apparently, I don't know the difference between 'left' and 'right'. Swap parameters named 'lhs' and 'rhs' so that they correctly refer to the 'left hand side' and 'right hand side' of comparisons. No functionality change. Thanks to Arthur O'Dwyer for pointing this out to me.
llvm-svn: 192080
Diffstat (limited to 'libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp')
-rw-r--r-- | libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp b/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp index c71c8cc91d9..e8bb1dcda19 100644 --- a/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp +++ b/libcxx/test/utilities/optional/optional.comp_with_t/less_than.pass.cpp @@ -23,8 +23,8 @@ struct X constexpr X(int i) : i_(i) {} }; -constexpr bool operator < ( const X &rhs, const X &lhs ) - { return rhs.i_ < lhs.i_ ; } +constexpr bool operator < ( const X &lhs, const X &rhs ) + { return lhs.i_ < rhs.i_ ; } #endif |