@@ -521,7 +521,7 @@ void Http2Stream::EmitStatistics() {
521
521
Http2StreamPerformanceEntry* entry =
522
522
new Http2StreamPerformanceEntry (env (), id_, statistics_);
523
523
env ()->SetImmediate ([](Environment* env, void * data) {
524
- // This takes ownership, the entr is destroyed at the end of this scope.
524
+ // This takes ownership, the entry is destroyed at the end of this scope.
525
525
std::unique_ptr<Http2StreamPerformanceEntry> entry {
526
526
static_cast <Http2StreamPerformanceEntry*>(data) };
527
527
if (!HasHttp2Observer (env))
@@ -1000,7 +1000,7 @@ int Http2Session::OnDataChunkReceived(nghttp2_session* handle,
1000
1000
// `buf.base == nullptr` is the default Http2StreamListener's way
1001
1001
// of saying that it wants a pointer to the raw original.
1002
1002
// Since it has access to the original socket buffer from which the data
1003
- // was read in the first place, it can use that to minizime ArrayBuffer
1003
+ // was read in the first place, it can use that to minimize ArrayBuffer
1004
1004
// allocations.
1005
1005
if (LIKELY (buf.base == nullptr ))
1006
1006
buf.base = reinterpret_cast <char *>(const_cast <uint8_t *>(data));
@@ -1340,7 +1340,7 @@ void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
1340
1340
}
1341
1341
1342
1342
// If the underlying nghttp2_session struct has data pending in its outbound
1343
- // queue, MaybeScheduleWrite will schedule a SendPendingData() call to occcur
1343
+ // queue, MaybeScheduleWrite will schedule a SendPendingData() call to occur
1344
1344
// on the next iteration of the Node.js event loop (using the SetImmediate
1345
1345
// queue), but only if a write has not already been scheduled.
1346
1346
void Http2Session::MaybeScheduleWrite () {
@@ -2182,7 +2182,7 @@ void Http2Session::RefreshSettings(const FunctionCallbackInfo<Value>& args) {
2182
2182
2183
2183
// A TypedArray instance is shared between C++ and JS land to contain state
2184
2184
// information of the current Http2Session. This updates the values in the
2185
- // TypedRray so those can be read in JS land.
2185
+ // TypedArray so those can be read in JS land.
2186
2186
void Http2Session::RefreshState (const FunctionCallbackInfo<Value>& args) {
2187
2187
Environment* env = Environment::GetCurrent (args);
2188
2188
Http2Session* session;
@@ -2515,7 +2515,7 @@ void Http2Session::AltSvc(int32_t id,
2515
2515
origin, origin_len, value, value_len), 0 );
2516
2516
}
2517
2517
2518
- // Submits an AltSvc frame to the sent to the connected peer.
2518
+ // Submits an AltSvc frame to be sent to the connected peer.
2519
2519
void Http2Session::AltSvc (const FunctionCallbackInfo<Value>& args) {
2520
2520
Environment* env = Environment::GetCurrent (args);
2521
2521
Http2Session* session;
0 commit comments