From 03e8d0df7284fd2c32fb5e5034a179e619147846 Mon Sep 17 00:00:00 2001 From: Lilith Hafner Date: Sat, 14 Oct 2023 14:16:38 -0500 Subject: [PATCH] fix more typos (this batch from `spellcheck` the last was from `typos`) --- base/reinterpretarray.jl | 2 +- base/toml_parser.jl | 4 ++-- base/version.jl | 2 +- doc/src/devdocs/pkgimg.md | 2 +- doc/src/manual/strings.md | 2 +- src/gc-heap-snapshot.cpp | 2 +- src/gc.c | 2 +- src/llvm-alloc-helpers.cpp | 2 +- src/llvm-late-gc-lowering.cpp | 4 ++-- src/subtype.c | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/base/reinterpretarray.jl b/base/reinterpretarray.jl index 3844edc331c7c..a4aa66c7f3533 100644 --- a/base/reinterpretarray.jl +++ b/base/reinterpretarray.jl @@ -672,7 +672,7 @@ end """ CyclePadding(padding, total_size) -Cylces an iterator of `Padding` structs, restarting the padding at `total_size`. +Cycles an iterator of `Padding` structs, restarting the padding at `total_size`. E.g. if `padding` is all the padding in a struct and `total_size` is the total aligned size of that array, `CyclePadding` will correspond to the padding in an infinite vector of such structs. diff --git a/base/toml_parser.jl b/base/toml_parser.jl index 60ee8c61059f4..086b7d99580c0 100644 --- a/base/toml_parser.jl +++ b/base/toml_parser.jl @@ -80,7 +80,7 @@ mutable struct Parser # Filled in in case we are parsing a file to improve error messages filepath::Union{String, Nothing} - # Get's populated with the Dates stdlib if it exists + # Gets populated with the Dates stdlib if it exists Dates::Union{Module, Nothing} end @@ -367,7 +367,7 @@ end @inline peek(l::Parser) = l.current_char # Return true if the character was accepted. When a character -# is accepted it get's eaten and we move to the next character +# is accepted it gets eaten and we move to the next character @inline function accept(l::Parser, f::Union{Function, Char})::Bool c = peek(l) c == EOF_CHAR && return false diff --git a/base/version.jl b/base/version.jl index a966135a071e2..730ae47a27363 100644 --- a/base/version.jl +++ b/base/version.jl @@ -11,7 +11,7 @@ const VInt = UInt32 Version number type which follows the specifications of [semantic versioning (semver)](https://semver.org/), composed of major, minor and patch numeric values, followed by pre-release and build -alpha-numeric annotations. +alphanumeric annotations. `VersionNumber` objects can be compared with all of the standard comparison operators (`==`, `<`, `<=`, etc.), with the result following semver rules. diff --git a/doc/src/devdocs/pkgimg.md b/doc/src/devdocs/pkgimg.md index 0e2cffd91a26f..64f4e640b7c19 100644 --- a/doc/src/devdocs/pkgimg.md +++ b/doc/src/devdocs/pkgimg.md @@ -33,7 +33,7 @@ Dynamic libraries on macOS need to link against `-lSystem`. On recent macOS vers To that effect we link with `-undefined dynamic_lookup`. ## [Package images optimized for multiple microarchitectures](@id pkgimgs-multi-versioning) -Similar to [multi-versioning](@ref sysimg-multi-versioning) for system images, package images support multi-versioning. If you are in a heterogenous environment, with a unified cache, +Similar to [multi-versioning](@ref sysimg-multi-versioning) for system images, package images support multi-versioning. If you are in a heterogeneous environment, with a unified cache, you can set the environment variable `JULIA_CPU_TARGET=generic` to multi-version the object caches. ## Flags that impact package image creation and selection diff --git a/doc/src/manual/strings.md b/doc/src/manual/strings.md index fca4fc75d9e0f..9c4fde5b8a701 100644 --- a/doc/src/manual/strings.md +++ b/doc/src/manual/strings.md @@ -1144,7 +1144,7 @@ Version numbers can easily be expressed with non-standard string literals of the Version number literals create [`VersionNumber`](@ref) objects which follow the specifications of [semantic versioning](https://semver.org/), and therefore are composed of major, minor and patch numeric values, followed by pre-release and -build alpha-numeric annotations. For example, `v"0.2.1-rc1+win64"` is broken into major version +build alphanumeric annotations. For example, `v"0.2.1-rc1+win64"` is broken into major version `0`, minor version `2`, patch version `1`, pre-release `rc1` and build `win64`. When entering a version literal, everything except the major version number is optional, therefore e.g. `v"0.2"` is equivalent to `v"0.2.0"` (with empty pre-release/build annotations), `v"2"` is equivalent to diff --git a/src/gc-heap-snapshot.cpp b/src/gc-heap-snapshot.cpp index 51bc5ab61610e..1875a22f64ff6 100644 --- a/src/gc-heap-snapshot.cpp +++ b/src/gc-heap-snapshot.cpp @@ -71,7 +71,7 @@ struct Node { size_t id; // This should be a globally-unique counter, but we use the memory address size_t self_size; size_t trace_node_id; // This is ALWAYS 0 in Javascript heap-snapshots. - // whether the from_node is attached or dettached from the main application state + // whether the from_node is attached or detached from the main application state // https://github.com/nodejs/node/blob/5fd7a72e1c4fbaf37d3723c4c81dce35c149dc84/deps/v8/include/v8-profiler.h#L739-L745 int detachedness; // 0 - unknown, 1 - attached, 2 - detached SmallVector edges; diff --git a/src/gc.c b/src/gc.c index 5c34bbd01b9a2..b030be9848f0b 100644 --- a/src/gc.c +++ b/src/gc.c @@ -2811,7 +2811,7 @@ void gc_drain_own_chunkqueue(jl_ptls_t ptls, jl_gc_markqueue_t *mq) } // Main mark loop. Stack (allocated on the heap) of `jl_value_t *` -// is used to keep track of processed items. Maintaning this stack (instead of +// is used to keep track of processed items. Maintaining this stack (instead of // native one) avoids stack overflow when marking deep objects and // makes it easier to implement parallel marking via work-stealing JL_EXTENSION NOINLINE void gc_mark_loop_serial(jl_ptls_t ptls) diff --git a/src/llvm-alloc-helpers.cpp b/src/llvm-alloc-helpers.cpp index d24c08b4b4930..665c0b1d2e00e 100644 --- a/src/llvm-alloc-helpers.cpp +++ b/src/llvm-alloc-helpers.cpp @@ -325,7 +325,7 @@ void jl_alloc::runEscapeAnalysis(llvm::Instruction *I, EscapeAnalysisRequiredArg else { next_offset = apoffset.getLimitedValue(); if (next_offset > UINT32_MAX) { - LLVM_DEBUG(dbgs() << "GEP inst exceeeds 32-bit offset\n"); + LLVM_DEBUG(dbgs() << "GEP inst exceeds 32-bit offset\n"); next_offset = UINT32_MAX; } } diff --git a/src/llvm-late-gc-lowering.cpp b/src/llvm-late-gc-lowering.cpp index 9bc451d78f5b6..10b2209945081 100644 --- a/src/llvm-late-gc-lowering.cpp +++ b/src/llvm-late-gc-lowering.cpp @@ -140,7 +140,7 @@ using namespace llvm; not sunk into the gc frame. Nevertheless performing such sinking can still be profitable. Since all arguments to a jlcall are guaranteed to be live at that call in some gc slot, we can attempt to rearrange the slots within - the gc-frame, or re-use slots not assigned at that particular location + the gc-frame, or reuse slots not assigned at that particular location for the gcframe. However, even without this optimization, stack frames are at most two times larger than optimal (because regular stack coloring can merge the jlcall allocas). @@ -2117,7 +2117,7 @@ struct PEOIterator { } if (NextElement == -1) return NextElement; - // Make sure not to try to re-use this later. + // Make sure not to try to reuse this later. Elements[NextElement].weight = (unsigned)-1; // Raise neighbors for (int Neighbor : Neighbors[NextElement]) { diff --git a/src/subtype.c b/src/subtype.c index 62aec2c7dc9e3..766e0e703f480 100644 --- a/src/subtype.c +++ b/src/subtype.c @@ -2812,7 +2812,7 @@ static jl_value_t *finish_unionall(jl_value_t *res JL_MAYBE_UNROOTED, jl_varbind // 1) record if btemp->lb/ub has indirect innervars. // 2) substitute `vb->var` with `varval`/`varval` // note: We only store the innervar in the outmost `varbinding`, - // thus we must check all inner env to ensure the recording/subtitution + // thus we must check all inner env to ensure the recording/substitution // is complete int len = current_env_length(e); int8_t *blinding_has_innerdep = (int8_t *)alloca(len);