From a92d67fcb2d0b40a059bb54e5b10b13b1ac437b8 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Mon, 12 Feb 2018 16:43:08 -0800 Subject: [PATCH] fix more typos in docs. --- basis/alien/data/data-docs.factor | 2 +- basis/compiler/cfg/instructions/instructions-docs.factor | 2 +- basis/compiler/cfg/ssa/destruction/destruction-docs.factor | 2 +- basis/compiler/codegen/gc-maps/gc-maps-docs.factor | 2 +- basis/cpu/x86/assembler/operands/operands-docs.factor | 2 +- basis/io/sockets/secure/secure-docs.factor | 2 +- basis/multiline/multiline-docs.factor | 2 +- basis/unix/groups/groups-docs.factor | 2 +- core/classes/tuple/parser/parser-docs.factor | 2 +- core/kernel/kernel.factor | 2 +- core/sets/sets-docs.factor | 2 +- extra/boolean-expr/boolean-expr-docs.factor | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/basis/alien/data/data-docs.factor b/basis/alien/data/data-docs.factor index 6c4d841ced..8d947d127d 100644 --- a/basis/alien/data/data-docs.factor +++ b/basis/alien/data/data-docs.factor @@ -154,7 +154,7 @@ ARTICLE: "c-pointers" "Passing pointers to C functions" ARTICLE: "c-boxes" "C value boxes" "Sometimes it is useful to create a byte array storing a single C value, like a struct with a single field. A pair of utility words exist to make this more convenient:" { $subsections deref } -"These words can be used to in conjuction with, or instead of, " { $link with-out-parameters } " to handle \"out-parameters\". For example, if a function is declared in the following way:" +"These words can be used to in conjunction with, or instead of, " { $link with-out-parameters } " to handle \"out-parameters\". For example, if a function is declared in the following way:" { $code "FUNCTION: int do_foo ( int* a )" } diff --git a/basis/compiler/cfg/instructions/instructions-docs.factor b/basis/compiler/cfg/instructions/instructions-docs.factor index d4a6793d0f..af9b13568f 100644 --- a/basis/compiler/cfg/instructions/instructions-docs.factor +++ b/basis/compiler/cfg/instructions/instructions-docs.factor @@ -53,7 +53,7 @@ HELP: ##alien-indirect HELP: ##allot { $class-description - "An instruction for allocating memory in the nursery. Usually the instruction is preceeded by " { $link ##check-nursery-branch } " which checks that there is enough room in the nursery to allocate. It has the following slots:" + "An instruction for allocating memory in the nursery. Usually the instruction is preceded by " { $link ##check-nursery-branch } " which checks that there is enough room in the nursery to allocate. It has the following slots:" { $table { { $slot "dst" } { "Register to put the pointer to the memory in." } } { { $slot "size" } { "Number of bytes to allocate." } } diff --git a/basis/compiler/cfg/ssa/destruction/destruction-docs.factor b/basis/compiler/cfg/ssa/destruction/destruction-docs.factor index b19f894a99..86ea0fa06f 100644 --- a/basis/compiler/cfg/ssa/destruction/destruction-docs.factor +++ b/basis/compiler/cfg/ssa/destruction/destruction-docs.factor @@ -12,7 +12,7 @@ HELP: destruct-ssa { $description "Main entry point for the SSA destruction compiler pass." } ; ARTICLE: "compiler.cfg.ssa.destruction" "SSA Destruction" -"SSA destruction compiler pass. It is preceeded by " { $vocab-link "compiler.cfg.save-contexts" } " and followed by " { $vocab-link "compiler.cfg.linear-scan" } "." +"SSA destruction compiler pass. It is preceded by " { $vocab-link "compiler.cfg.save-contexts" } " and followed by " { $vocab-link "compiler.cfg.linear-scan" } "." $nl "Because of the design of the register allocator, this pass has three peculiar properties." { $list diff --git a/basis/compiler/codegen/gc-maps/gc-maps-docs.factor b/basis/compiler/codegen/gc-maps/gc-maps-docs.factor index 80b7ee3bae..01c446e484 100644 --- a/basis/compiler/codegen/gc-maps/gc-maps-docs.factor +++ b/basis/compiler/codegen/gc-maps/gc-maps-docs.factor @@ -38,7 +38,7 @@ HELP: gc-map-needed? HELP: gc-root-offsets { $values { "gc-map" gc-map } { "offsets" sequence } } -{ $description "Gets the offets of all roots in a gc-map. The " { $link cfg } " variable must have been set and the stack-frame slot been initialized." } ; +{ $description "Gets the offsets of all roots in a gc-map. The " { $link cfg } " variable must have been set and the stack-frame slot been initialized." } ; HELP: serialize-gc-maps { $values { "byte-array" byte-array } } diff --git a/basis/cpu/x86/assembler/operands/operands-docs.factor b/basis/cpu/x86/assembler/operands/operands-docs.factor index 18906a3fe4..04e55a098c 100644 --- a/basis/cpu/x86/assembler/operands/operands-docs.factor +++ b/basis/cpu/x86/assembler/operands/operands-docs.factor @@ -31,7 +31,7 @@ HELP: n-bit-version-of ARTICLE: "cpu.x86.assembler.operands" "CPU x86 registers and memory operands" "Indirect operand constructors for various addressing formats:" { $subsections [] [RIP+] [+] [++] [+*2+] [+*4+] [+*8+] } -"Register correspondances:" +"Register correspondences:" { $subsections 8-bit-version-of 16-bit-version-of diff --git a/basis/io/sockets/secure/secure-docs.factor b/basis/io/sockets/secure/secure-docs.factor index 1f5e048d49..d18e7fd98d 100644 --- a/basis/io/sockets/secure/secure-docs.factor +++ b/basis/io/sockets/secure/secure-docs.factor @@ -34,7 +34,7 @@ HELP: secure-config HELP: { $values { "config" secure-config } } -{ $description "Creates a new secure socket configration with default values." } ; +{ $description "Creates a new secure socket configuration with default values." } ; ARTICLE: "ssl-key-file" "The key file and password" "The " { $snippet "key-file" } " and " { $snippet "password" } " slots of a " { $link secure-config } " can be set to a private key file in PEM format. These slots are required for secure servers, and also for clients when client-side authentication is used." ; diff --git a/basis/multiline/multiline-docs.factor b/basis/multiline/multiline-docs.factor index 663494c501..98372f7f9c 100644 --- a/basis/multiline/multiline-docs.factor +++ b/basis/multiline/multiline-docs.factor @@ -3,7 +3,7 @@ IN: multiline HELP: STRING: { $syntax "STRING: name\nfoo\n;" } -{ $description "Forms a multiline string literal, or 'here document' stored in the word called name. A semicolon is used to signify the end, and that semicolon must be on a line by itself, not preceeded or followed by any whitespace. The string will have newlines in between lines but not at the end, unless there is a blank line before the semicolon." } ; +{ $description "Forms a multiline string literal, or 'here document' stored in the word called name. A semicolon is used to signify the end, and that semicolon must be on a line by itself, not preceded or followed by any whitespace. The string will have newlines in between lines but not at the end, unless there is a blank line before the semicolon." } ; HELP: /* { $syntax "/* comment */" } diff --git a/basis/unix/groups/groups-docs.factor b/basis/unix/groups/groups-docs.factor index e9b72fc405..6498e42e5a 100644 --- a/basis/unix/groups/groups-docs.factor +++ b/basis/unix/groups/groups-docs.factor @@ -66,7 +66,7 @@ HELP: user-groups HELP: with-effective-group { $values { "string/id/f" "a string, a group id, or f" } { "quot" quotation } } -{ $description "Sets the effective group name and calls the quotation. Restores the effective group name on success or on error after the call. If the first parameter is " { $link f } ", the quotation is called as the current user." } ; +{ $description "Sets the effective group name and calls the quotation. Restors the effective group name on success or on error after the call. If the first parameter is " { $link f } ", the quotation is called as the current user." } ; HELP: with-group-cache { $values diff --git a/core/classes/tuple/parser/parser-docs.factor b/core/classes/tuple/parser/parser-docs.factor index f4ecb1461e..6733a853bf 100644 --- a/core/classes/tuple/parser/parser-docs.factor +++ b/core/classes/tuple/parser/parser-docs.factor @@ -5,7 +5,7 @@ HELP: invalid-slot-name { $values { "name" string } } { $description "Throws an " { $link invalid-slot-name } " error." } { $error-description "Thrown by " { $link POSTPONE: TUPLE: } " and " { $link POSTPONE: ERROR: } " if a suspect token appears as a slot name." } -{ $notes "The suspect tokens are chosen so that the following code raises this parse error, instead of silently greating a tuple with garbage slots:" +{ $notes "The suspect tokens are chosen so that the following code raises this parse error, instead of silently creating a tuple with garbage slots:" { $code "TUPLE: my-mistaken-tuple slot-a slot-b" "" diff --git a/core/kernel/kernel.factor b/core/kernel/kernel.factor index 9bddf6bc6b..155dffc436 100644 --- a/core/kernel/kernel.factor +++ b/core/kernel/kernel.factor @@ -77,7 +77,7 @@ DEFER: if : ? ( ? true false -- true/false ) ! 'if' and '?' can be defined in terms of each other - ! because the JIT special-cases an 'if' preceeded by + ! because the JIT special-cases an 'if' preceded by ! two literal quotations. rot [ drop ] [ nip ] if ; inline diff --git a/core/sets/sets-docs.factor b/core/sets/sets-docs.factor index a3645d8f75..d6049441a1 100644 --- a/core/sets/sets-docs.factor +++ b/core/sets/sets-docs.factor @@ -193,7 +193,7 @@ HELP: subset? HELP: set= { $values { "set1" set } { "set2" set } { "?" boolean } } -{ $description "Tests if both sets contain the same elements, disregrading order and duplicates." } ; +{ $description "Tests if both sets contain the same elements, disregarding order and duplicates." } ; HELP: gather { $values diff --git a/extra/boolean-expr/boolean-expr-docs.factor b/extra/boolean-expr/boolean-expr-docs.factor index 5fc99dc5fd..35ea2bba4d 100644 --- a/extra/boolean-expr/boolean-expr-docs.factor +++ b/extra/boolean-expr/boolean-expr-docs.factor @@ -119,7 +119,7 @@ HELP: ⊥ { $class-description "Logical contradiction. This statement is unconditionally false." } ; HELP: ⋀ -{ $class-description "Logical conjuction (AND)." } ; +{ $class-description "Logical conjunction (AND)." } ; HELP: ⋁ { $class-description "Logical disjunction (OR)." } ;