Skip to content

Commit

Permalink
Merge pull request yedf2#13 from huntinux/master
Browse files Browse the repository at this point in the history
修正注释拼写错误
  • Loading branch information
yedf2 authored Oct 11, 2016
2 parents a4c4c8a + de88742 commit d02574c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions handy/event_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ struct Channel: private noncopyable {
//关闭通道
void close();

//挂接时间处理器
//挂接事件处理器
void onRead(const Task& readcb) { readcb_ = readcb; }
void onWrite(const Task& writecb) { writecb_ = writecb; }
void onRead(Task&& readcb) { readcb_ = std::move(readcb); }
Expand All @@ -97,4 +97,4 @@ struct Channel: private noncopyable {
std::function<void()> readcb_, writecb_, errorcb_;
};

}
}

0 comments on commit d02574c

Please sign in to comment.