Skip to content

Commit

Permalink
chore: Fix multiple typos (oven-sh#8121)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-syn authored Jan 12, 2024
1 parent 31db26b commit f43ecd8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bench/emitter/realworld_stream.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { bench, run } from "mitata";
import { groupForEmitter } from "./implementations.mjs";

// Psuedo RNG is derived from https://stackoverflow.com/a/424445
// Pseudo RNG is derived from https://stackoverflow.com/a/424445
let rngState = 123456789;
function nextInt() {
const m = 0x80000000; // 2**31;
Expand Down
2 changes: 1 addition & 1 deletion packages/bun-polyfills/src/modules/bun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export const spawnSync = ((...args): SyncSubprocess => {
}
let input: ArrayBufferView | string | undefined;
if (opts.stdio[0] && typeof opts.stdio[0] !== 'string') {
stdio[0] = null; // will be overriden by chp.spawnSync "input" option
stdio[0] = null; // will be overridden by chp.spawnSync "input" option
//! Due to the fully async nature of Blobs, Responses and Requests,
//! we can't synchronously get the data out of them here in userland.
if (opts.stdio[0] instanceof Blob) throw new NotImplementedError('Bun.spawnSync({ stdin: <Blob> })', spawnSync);
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/bindings/simdutf.h
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,7 @@ simdutf_really_inline simdutf_warn_unused simdutf::encoding_type autodetect_enco
* E.g., if the input might be UTF-16LE or UTF-8, this function returns
* the value (simdutf::encoding_type::UTF8 | simdutf::encoding_type::UTF16_LE).
*
* Overriden by each implementation.
* Overridden by each implementation.
*
* @param input the string to analyze.
* @param length the length of the string in bytes.
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/node/types.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2404,7 +2404,7 @@ pub const Process = struct {
const vm = globalObject.bunVM();

if (vm.worker) |worker| {
// was explicitly overriden for the worker?
// was explicitly overridden for the worker?
if (worker.execArgv) |execArgv| {
const array = JSC.JSValue.createEmptyArray(globalObject, execArgv.len);
for (0..execArgv.len) |i| {
Expand Down
2 changes: 1 addition & 1 deletion src/bun.js/test/pretty_format.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2070,7 +2070,7 @@ pub const JestPrettyFormat = struct {
this.quote_strings = original_quote_strings;
} else if (value.as(expect.ExpectCustomAsymmetricMatcher)) |instance| {
const printed = instance.customPrint(value, this.globalThis, writer_, true) catch unreachable;
if (!printed) { // default print (non-overriden by user)
if (!printed) { // default print (non-overridden by user)
const flags = instance.flags;
const args_value = expect.ExpectCustomAsymmetricMatcher.capturedArgsGetCached(value) orelse return true;
const matcher_fn = expect.ExpectCustomAsymmetricMatcher.matcherFnGetCached(value) orelse return true;
Expand Down
2 changes: 1 addition & 1 deletion src/cli/bunx_command.zig
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ pub const BunxCommand = struct {
else
update_request.name;

// fast path: they're actually using this interchangably with `bun run`
// fast path: they're actually using this interchangeably with `bun run`
// so we use Bun.which to check
var this_bundler: bun.Bundler = undefined;
var ORIGINAL_PATH: string = "";
Expand Down
2 changes: 1 addition & 1 deletion src/fd.zig
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub fn uv_open_osfhandle(in: libuv.uv_os_fd_t) c_int {
///
/// bun.FileDescriptor is the bitcast of this struct, which is essentially a tagged pointer.
///
/// You can aquire one with FDImpl.decode(fd), and convert back to it with FDImpl.encode(fd).
/// You can acquire one with FDImpl.decode(fd), and convert back to it with FDImpl.encode(fd).
///
/// On Windows builds we have two kinds of file descriptors:
/// - system: A "std.os.windows.HANDLE" that windows APIs can interact with.
Expand Down

0 comments on commit f43ecd8

Please sign in to comment.