Skip to content

Commit c001a52

Browse files
committed
Fix minor typos
1 parent f58eb11 commit c001a52

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

include/msgpack/adaptor/boost/optional.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include "msgpack/adaptor/adaptor_base.hpp"
2323
#include "msgpack/adaptor/check_container_size.hpp"
2424

25-
// To supress warning on Boost.1.58.0
25+
// To suppress warning on Boost.1.58.0
2626
#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__)
2727
#pragma GCC diagnostic push
2828
#pragma GCC diagnostic ignored "-Wunused-parameter"

include/msgpack/adaptor/ext.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ template <>
9999
struct pack<msgpack::type::ext> {
100100
template <typename Stream>
101101
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, const msgpack::type::ext& v) const {
102-
// size limit has aleady been checked at ext's constructor
102+
// size limit has already been checked at ext's constructor
103103
uint32_t size = v.size();
104104
o.pack_ext(size, v.type());
105105
o.pack_ext_body(v.data(), size);
@@ -110,7 +110,7 @@ struct pack<msgpack::type::ext> {
110110
template <>
111111
struct object_with_zone<msgpack::type::ext> {
112112
void operator()(msgpack::object::with_zone& o, const msgpack::type::ext& v) const {
113-
// size limit has aleady been checked at ext's constructor
113+
// size limit has already been checked at ext's constructor
114114
uint32_t size = v.size();
115115
o.type = msgpack::type::EXT;
116116
char* ptr = static_cast<char*>(o.zone.allocate_align(size + 1));
@@ -131,15 +131,15 @@ class ext_ref {
131131
// A default constructed ext_ref object::m_ptr doesn't have the buffer to point to.
132132
// In order to avoid nullptr checking branches, m_ptr points to m_size.
133133
// So type() returns unspecified but valid value. It might be a zero because m_size
134-
// is initialized as zero, but shoudn't assume that.
134+
// is initialized as zero, but shouldn't assume that.
135135
ext_ref() : m_ptr(static_cast<char*>(static_cast<void*>(&m_size))), m_size(0) {}
136136
ext_ref(const char* p, uint32_t s) :
137137
m_ptr(s == 0 ? static_cast<char*>(static_cast<void*>(&m_size)) : p),
138138
m_size(s == 0 ? 0 : s - 1) {
139139
detail::check_container_size_for_ext<sizeof(std::size_t)>(s);
140140
}
141141

142-
// size limit has aleady been checked at ext's constructor
142+
// size limit has already been checked at ext's constructor
143143
ext_ref(ext const& x) : m_ptr(&x.m_data[0]), m_size(x.size()) {}
144144

145145
const char* data() const {
@@ -184,7 +184,7 @@ class ext_ref {
184184
};
185185

186186
inline ext::ext(ext_ref const& x) {
187-
// size limit has aleady been checked at ext_ref's constructor
187+
// size limit has already been checked at ext_ref's constructor
188188
m_data.reserve(x.size() + 1);
189189

190190
m_data.push_back(x.type());
@@ -208,7 +208,7 @@ template <>
208208
struct pack<msgpack::type::ext_ref> {
209209
template <typename Stream>
210210
msgpack::packer<Stream>& operator()(msgpack::packer<Stream>& o, const msgpack::type::ext_ref& v) const {
211-
// size limit has aleady been checked at ext_ref's constructor
211+
// size limit has already been checked at ext_ref's constructor
212212
uint32_t size = v.size();
213213
o.pack_ext(size, v.type());
214214
o.pack_ext_body(v.data(), size);
@@ -219,7 +219,7 @@ struct pack<msgpack::type::ext_ref> {
219219
template <>
220220
struct object<msgpack::type::ext_ref> {
221221
void operator()(msgpack::object& o, const msgpack::type::ext_ref& v) const {
222-
// size limit has aleady been checked at ext_ref's constructor
222+
// size limit has already been checked at ext_ref's constructor
223223
uint32_t size = v.size();
224224
o.type = msgpack::type::EXT;
225225
o.via.ext.ptr = v.m_ptr;

include/msgpack/adaptor/nil.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ struct object_with_zone<type::nil> {
7474
}
7575
};
7676

77-
} // namespace adaptror
77+
} // namespace adaptor
7878

7979
template <>
8080
inline void msgpack::object::as<void>() const

0 commit comments

Comments
 (0)