diff --git a/src/udp_wrap.cc b/src/udp_wrap.cc index 24df0acba46041..26bafebcb22c14 100644 --- a/src/udp_wrap.cc +++ b/src/udp_wrap.cc @@ -230,12 +230,12 @@ int sockaddr_for_family(int address_family, const unsigned short port, struct sockaddr_storage* addr) { switch (address_family) { - case AF_INET: - return uv_ip4_addr(address, port, reinterpret_cast(addr)); - case AF_INET6: - return uv_ip6_addr(address, port, reinterpret_cast(addr)); - default: - CHECK(0 && "unexpected address family"); + case AF_INET: + return uv_ip4_addr(address, port, reinterpret_cast(addr)); + case AF_INET6: + return uv_ip6_addr(address, port, reinterpret_cast(addr)); + default: + CHECK(0 && "unexpected address family"); } } diff --git a/test/common/index.js b/test/common/index.js index 9de81b426e6c7e..33754760917acd 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -27,7 +27,7 @@ const process = global.process; // Some tests tamper with the process global. const assert = require('assert'); const { exec, execSync, spawnSync } = require('child_process'); const fs = require('fs'); -// Do not require 'os' until needed so that test-os-checked-fucnction can +// Do not require 'os' until needed so that test-os-checked-function can // monkey patch it. If 'os' is required here, that test will fail. const path = require('path'); const util = require('util'); diff --git a/test/parallel/test-quic-client-empty-preferred-address.js b/test/parallel/test-quic-client-empty-preferred-address.js index fa5a0b65503af4..a65b9f9032fc98 100644 --- a/test/parallel/test-quic-client-empty-preferred-address.js +++ b/test/parallel/test-quic-client-empty-preferred-address.js @@ -3,7 +3,7 @@ // This test ensures that when we don't define `preferredAddress` // on the server while the `preferredAddressPolicy` on the client -// is `accpet`, it works as expected. +// is `accept`, it works as expected. const common = require('../common'); if (!common.hasQuic)