doc,src,test: fix typos · nodejs/node@a994d3d

8 files changed

lines changed

Original file line numberDiff line numberDiff line change

@@ -2621,7 +2621,7 @@ changes:

26212621

- v23.4.0

26222622

- v22.13.0

26232623

pr-url: https://github.com/nodejs/node/pull/55897

2624-

description: Snapsnot testing is no longer experimental.

2624+

description: Snapshot testing is no longer experimental.

26252625

-->

26262626
26272627

Regenerates the snapshot files used by the test runner for [snapshot testing][].

Original file line numberDiff line numberDiff line change

@@ -1231,7 +1231,7 @@ added: v23.8.0

12311231
12321232

* {bigint|number}

12331233
1234-

Specifies the maxumum session flow-control window size.

1234+

Specifies the maximum session flow-control window size.

12351235
12361236

#### `sessionOptions.minVersion`

12371237
Original file line numberDiff line numberDiff line change

@@ -986,7 +986,7 @@ added: v22.3.0

986986

changes:

987987

- version: v23.4.0

988988

pr-url: https://github.com/nodejs/node/pull/55897

989-

description: Snapsnot testing is no longer experimental.

989+

description: Snapshot testing is no longer experimental.

990990

-->

991991
992992

Snapshot tests allow arbitrary values to be serialized into string values and

Original file line numberDiff line numberDiff line change

@@ -30,7 +30,7 @@ struct has_priority<T, std::void_t<decltype(std::declval<T>().priority)>>

3030

template <class T>

3131

class TaskQueue {

3232

public:

33-

// If the entry type has a priority memeber, order the priority queue by

33+

// If the entry type has a priority member, order the priority queue by

3434

// that - higher priority first. Otherwise, maintain insertion order.

3535

struct EntryCompare {

3636

bool operator()(const std::unique_ptr<T>& a,

Original file line numberDiff line numberDiff line change

@@ -2730,7 +2730,7 @@ void Session::EmitVersionNegotiation(const ngtcp2_pkt_hd& hd,

27302730

versions[n] = Integer::NewFromUnsigned(env()->isolate(), sv[n]);

27312731

}

27322732
2733-

// supported are the versions we acutually support expressed as a range.

2733+

// supported are the versions we actually support expressed as a range.

27342734

// The first value is the minimum version, the second is the maximum.

27352735

Local<Value> supported[] = {

27362736

Integer::NewFromUnsigned(env()->isolate(), opts.min_version),

Original file line numberDiff line numberDiff line change

@@ -55,7 +55,7 @@ class Endpoint;

5555

// is created. This ngtcp2_conn is destroyed when the session object is freed.

5656

// However, the session can be in a closed/destroyed state and still have a

5757

// valid ngtcp2_conn pointer. This is important because the ngtcp2 still might

58-

// be processsing data within the scope of an ngtcp2_conn after the session

58+

// be processing data within the scope of an ngtcp2_conn after the session

5959

// object itself is closed/destroyed by user code.

6060

class Session final : public AsyncWrap, private SessionTicket::AppData::Source {

6161

public:

Original file line numberDiff line numberDiff line change

@@ -58,7 +58,7 @@ class SessionTicket final : public MemoryRetainer {

5858

};

5959
6060

// SessionTicket::AppData is a utility class that is used only during the

61-

// generation or access of TLS stateless sesson tickets. It exists solely to

61+

// generation or access of TLS stateless session tickets. It exists solely to

6262

// provide a easier way for Session::Application instances to set relevant

6363

// metadata in the session ticket when it is created, and the extract and

6464

// subsequently verify that data when a ticket is received and is being

Original file line numberDiff line numberDiff line change

@@ -69,7 +69,7 @@ namespace quic {

6969

V(ACKED_AT, acked_at) \

7070

/* Marks the timestamp when the stream was destroyed */ \

7171

V(DESTROYED_AT, destroyed_at) \

72-

/* Records the total number of bytes receied by the stream */ \

72+

/* Records the total number of bytes received by the stream */ \

7373

V(BYTES_RECEIVED, bytes_received) \

7474

/* Records the total number of bytes sent by the stream */ \

7575

V(BYTES_SENT, bytes_sent) \