summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorfindmyhappy <167661649+findmyhappy@users.noreply.github.com>2024-04-30 15:59:56 +0800
committerGitHub <noreply@github.com>2024-04-30 17:59:56 +1000
commitce4a7773ccb606c51c824881e37043bc937c94f2 (patch)
tree571f819ff238c3b2e43072caa81bb740df1d5073 /ext
parent850331164138233ea86c9a5032d99ad29c79efe1 (diff)
docs: fix some typos in comments (#23520)
Diffstat (limited to 'ext')
-rw-r--r--ext/net/tcp.rs2
-rw-r--r--ext/webgpu/01_webgpu.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/net/tcp.rs b/ext/net/tcp.rs
index 583620243..63baa8e4b 100644
--- a/ext/net/tcp.rs
+++ b/ext/net/tcp.rs
@@ -7,7 +7,7 @@ use socket2::Domain;
use socket2::Protocol;
use socket2::Type;
-/// Our per-process `Connections`. We can use this to find an existant listener for
+/// Our per-process `Connections`. We can use this to find an existent listener for
/// a given local address and clone its socket for us to listen on in our thread.
static CONNS: std::sync::OnceLock<std::sync::Mutex<Connections>> =
std::sync::OnceLock::new();
diff --git a/ext/webgpu/01_webgpu.js b/ext/webgpu/01_webgpu.js
index b8b13ebf8..d3e9bf4e3 100644
--- a/ext/webgpu/01_webgpu.js
+++ b/ext/webgpu/01_webgpu.js
@@ -193,7 +193,7 @@ function assertDeviceMatch(
const resourceDevice = assertDevice(resource, prefix, resourceContext);
if (resourceDevice.rid !== self.rid) {
throw new DOMException(
- `${prefix}: ${resourceContext} belongs to a diffent device than ${selfContext}.`,
+ `${prefix}: ${resourceContext} belongs to a different device than ${selfContext}.`,
"OperationError",
);
}