This commit is contained in:
Vinnie Falco
2019-02-02 13:19:30 -08:00
parent a142969c5d
commit bfb500110b
2 changed files with 3 additions and 3 deletions

View File

@@ -24,7 +24,7 @@
namespace boost {
namespace beast {
/** A buffer sequence adapter that shortens the sequence size.
/** A buffer sequence adaptor that shortens the sequence size.
The class adapts a buffer sequence to efficiently represent
a shorter subset of the original list of buffers starting

View File

@@ -195,7 +195,7 @@ boost::ignore_unused(ec);
// message was in binary mode, otherwise we will send in text mode.
ws.binary(ws.got_binary());
// This buffer adapter allows us to iterate through buffer in pieces
// This buffer adaptor allows us to iterate through buffer in pieces
buffers_suffix<multi_buffer::const_buffers_type> cb{buffer.data()};
// Echo the received message in pieces.
@@ -210,7 +210,7 @@ boost::ignore_unused(ec);
// the stream that the message is not complete.
ws.write_some(false, buffers_prefix(512, cb));
// This efficiently discards data from the adapter by
// This efficiently discards data from the adaptor by
// simply ignoring it, but does not actually affect the
// underlying dynamic buffer.
cb.consume(512);