Merge pull request #95 from yrf105/patch-1

Update item34.md
This commit is contained in:
Yi Yang 2021-08-23 17:11:56 +08:00 committed by GitHub
commit 0fc48e456c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ auto setSoundB = //“B”代表“bind”
```c++
auto setSoundB =
std::bind(setAlarm,
std::bind(std::plus<>(), steady_clock::now(), 1h),
std::bind(std::plus<>(), std::bind(steady_clock::now), 1h),
_1,
30s);
```
@ -93,7 +93,7 @@ using namespace std::placeholders;
auto setSoundB =
std::bind(setAlarm,
std::bind(std::plus<steady_clock::time_point>(),
steady_clock::now(),
std::bind(steady_clock::now),
hours(1)),
_1,
seconds(30));