diff --git a/include/libp2p/basic/scheduler.hpp b/include/libp2p/basic/scheduler.hpp index e0a96b14..6c753647 100644 --- a/include/libp2p/basic/scheduler.hpp +++ b/include/libp2p/basic/scheduler.hpp @@ -94,7 +94,7 @@ namespace libp2p::basic { * @param cb callback * @param delay_from_now time interval, zero for deferring * @param make_handle if true, then active Handle is returned - * @return actie or empty Handle, depending on make_handle argument + * @return active or empty Handle, depending on make_handle argument */ virtual Handle scheduleImpl(Callback &&cb, std::chrono::milliseconds delay_from_now, diff --git a/include/libp2p/common/types.hpp b/include/libp2p/common/types.hpp index d083f3ba..e10a1c21 100644 --- a/include/libp2p/common/types.hpp +++ b/include/libp2p/common/types.hpp @@ -34,7 +34,7 @@ namespace libp2p { template concept SpanOfBytes = std::is_same_v, BytesIn> - or std::is_same_v, BytesIn>; + or std::is_same_v, BytesOut>; inline bool operator==(const SpanOfBytes auto &lhs, const SpanOfBytes auto &rhs) {