From 4c95521670ac88129ccb470c6180a2dec4508d53 Mon Sep 17 00:00:00 2001 From: suomesta Date: Sat, 30 Sep 2023 13:20:12 +0900 Subject: [PATCH] fix some minor faults --- reference/chrono/duration/op_greater_equal.md | 2 +- reference/chrono/time_point/op_greater_equal.md | 2 +- reference/chrono/time_point/op_plus.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/chrono/duration/op_greater_equal.md b/reference/chrono/duration/op_greater_equal.md index da9007c1d4..7ae068c48b 100644 --- a/reference/chrono/duration/op_greater_equal.md +++ b/reference/chrono/duration/op_greater_equal.md @@ -22,7 +22,7 @@ namespace chrono { ```cpp using ct = common_type::type; -return ct(lhs).count() < ct(rhs).count(); +return ct(lhs).count() >= ct(rhs).count(); ``` * common_type[link /reference/type_traits/common_type.md] * count[link /reference/chrono/duration/count.md] diff --git a/reference/chrono/time_point/op_greater_equal.md b/reference/chrono/time_point/op_greater_equal.md index 1cc3424895..aad6ba394b 100644 --- a/reference/chrono/time_point/op_greater_equal.md +++ b/reference/chrono/time_point/op_greater_equal.md @@ -24,7 +24,7 @@ namespace chrono { ## 戻り値 ```cpp -return lhs.time_since_epoch() < rhs.time_since_poch(); +return lhs.time_since_epoch() >= rhs.time_since_poch(); ``` * time_since_epoch[link /reference/chrono/time_point/time_since_epoch.md] diff --git a/reference/chrono/time_point/op_plus.md b/reference/chrono/time_point/op_plus.md index 7fa9cd8038..57eaa73399 100644 --- a/reference/chrono/time_point/op_plus.md +++ b/reference/chrono/time_point/op_plus.md @@ -23,7 +23,7 @@ namespace chrono { const time_point& rhs); // (2) C++11 template - time_point, Duration2>::type> + constexpr time_point, Duration2>::type> operator+(const duration& lhs, const time_point& rhs); // (2) C++14 }}