@@ -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))
@@ -998,7 +998,7 @@ int Http2Session::OnDataChunkReceived(nghttp2_session* handle,
998
998
// `buf.base == nullptr` is the default Http2StreamListener's way
999
999
// of saying that it wants a pointer to the raw original.
1000
1000
// Since it has access to the original socket buffer from which the data
1001
- // was read in the first place, it can use that to minizime ArrayBuffer
1001
+ // was read in the first place, it can use that to minimize ArrayBuffer
1002
1002
// allocations.
1003
1003
if (LIKELY (buf.base == nullptr ))
1004
1004
buf.base = reinterpret_cast <char *>(const_cast <uint8_t *>(data));
@@ -1338,7 +1338,7 @@ void Http2Session::OnStreamAfterWrite(WriteWrap* w, int status) {
1338
1338
}
1339
1339
1340
1340
// If the underlying nghttp2_session struct has data pending in its outbound
1341
- // queue, MaybeScheduleWrite will schedule a SendPendingData() call to occcur
1341
+ // queue, MaybeScheduleWrite will schedule a SendPendingData() call to occur
1342
1342
// on the next iteration of the Node.js event loop (using the SetImmediate
1343
1343
// queue), but only if a write has not already been scheduled.
1344
1344
void Http2Session::MaybeScheduleWrite () {
@@ -2180,7 +2180,7 @@ void Http2Session::RefreshSettings(const FunctionCallbackInfo<Value>& args) {
2180
2180
2181
2181
// A TypedArray instance is shared between C++ and JS land to contain state
2182
2182
// information of the current Http2Session. This updates the values in the
2183
- // TypedRray so those can be read in JS land.
2183
+ // TypedArray so those can be read in JS land.
2184
2184
void Http2Session::RefreshState (const FunctionCallbackInfo<Value>& args) {
2185
2185
Environment* env = Environment::GetCurrent (args);
2186
2186
Http2Session* session;
@@ -2513,7 +2513,7 @@ void Http2Session::AltSvc(int32_t id,
2513
2513
origin, origin_len, value, value_len), 0 );
2514
2514
}
2515
2515
2516
- // Submits an AltSvc frame to the sent to the connected peer.
2516
+ // Submits an AltSvc frame to be sent to the connected peer.
2517
2517
void Http2Session::AltSvc (const FunctionCallbackInfo<Value>& args) {
2518
2518
Environment* env = Environment::GetCurrent (args);
2519
2519
Http2Session* session;
0 commit comments