From e7b2d91e0414a7253d0328524acea6a37fd89887 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Tue, 1 Dec 2020 13:54:28 +0100 Subject: [PATCH] src: use transferred consistently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This commit updates usages of transfered to be transferred to make it consist in all comments. PR-URL: https://github.com/nodejs/node/pull/36340 Reviewed-By: Michaël Zasso Reviewed-By: Colin Ihrig Reviewed-By: Richard Lau Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca Reviewed-By: Tobias Nießen Reviewed-By: James M Snell Reviewed-By: Yuta Hiroto --- src/base_object.h | 8 ++++---- src/node_messaging.h | 2 +- src/quic/node_quic_session.h | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/base_object.h b/src/base_object.h index 54ebeb52041738..3eac795e783e9d 100644 --- a/src/base_object.h +++ b/src/base_object.h @@ -116,13 +116,13 @@ class BaseObject : public MemoryRetainer { // the current object: // - kUntransferable: // No transfer is possible, either because this type of BaseObject does - // not know how to be transfered, or because it is not in a state in + // not know how to be transferred, or because it is not in a state in // which it is possible to do so (e.g. because it has already been - // transfered). + // transferred). // - kTransferable: - // This object can be transfered in a destructive fashion, i.e. will be + // This object can be transferred in a destructive fashion, i.e. will be // rendered unusable on the sending side of the channel in the process - // of being transfered. (In C++ this would be referred to as movable but + // of being transferred. (In C++ this would be referred to as movable but // not copyable.) Objects of this type need to be listed in the // `transferList` argument of the relevant postMessage() call in order to // make sure that they are not accidentally destroyed on the sending side. diff --git a/src/node_messaging.h b/src/node_messaging.h index 22c11321ef7543..ae8f3be6c39a38 100644 --- a/src/node_messaging.h +++ b/src/node_messaging.h @@ -20,7 +20,7 @@ class MessagePort; typedef MaybeStackBuffer, 8> TransferList; // Used to represent the in-flight structure of an object that is being -// transfered or cloned using postMessage(). +// transferred or cloned using postMessage(). class TransferData : public MemoryRetainer { public: // Deserialize this object on the receiving end after a .postMessage() call. diff --git a/src/quic/node_quic_session.h b/src/quic/node_quic_session.h index 7c9b3f9710f17b..10e16cc2689023 100644 --- a/src/quic/node_quic_session.h +++ b/src/quic/node_quic_session.h @@ -735,7 +735,7 @@ class QuicApplication : public MemoryRetainer, // QUIC sessions are logical connections that exchange data // back and forth between peer endpoints via UDP. Every QuicSession -// has an associated TLS context and all data transfered between +// has an associated TLS context and all data transferred between // the peers is always encrypted. Unlike TLS over TCP, however, // The QuicSession uses a session identifier that is independent // of both the local *and* peer IP address, allowing a QuicSession