From: John Benediktsson Date: Tue, 13 Feb 2018 00:22:49 +0000 (-0800) Subject: fix some typos in docs. X-Git-Tag: 0.98~336 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=7d628b833dad31a3985e58ee594a3a3e31a78a22 fix some typos in docs. --- diff --git a/basis/compiler/cfg/cfg-docs.factor b/basis/compiler/cfg/cfg-docs.factor index 4586423d42..205faec446 100644 --- a/basis/compiler/cfg/cfg-docs.factor +++ b/basis/compiler/cfg/cfg-docs.factor @@ -46,7 +46,7 @@ HELP: basic-block } } } -{ $notes "A basic-block is an " { $link identity-tuple } " becase it is used as a hash table key by the compiler." } ; +{ $notes "A basic-block is an " { $link identity-tuple } " because it is used as a hash table key by the compiler." } ; HELP: { $values { "bb" basic-block } } diff --git a/basis/compiler/cfg/stacks/global/global-docs.factor b/basis/compiler/cfg/stacks/global/global-docs.factor index 23ffc69b41..c442f226df 100644 --- a/basis/compiler/cfg/stacks/global/global-docs.factor +++ b/basis/compiler/cfg/stacks/global/global-docs.factor @@ -18,7 +18,7 @@ HELP: pending { $class-description "A stack location is pending at a location if all paths from the entry block to the location write the location." } ; ARTICLE: "compiler.cfg.stacks.global" "Global stack analysis" -"This vocab defines a bunch of dataflow analysises:" +"This vocab defines a bunch of dataflow analyses:" { $subsections avail anticip dead live pending } "The info they gather is used by " { $link finalize-stack-shuffling } " for optimal insertion of " { $link ##peek } " and " { $link ##replace } " instructions." ; diff --git a/basis/compiler/codegen/relocation/relocation-docs.factor b/basis/compiler/codegen/relocation/relocation-docs.factor index 6f90b55740..84bbc7ef07 100644 --- a/basis/compiler/codegen/relocation/relocation-docs.factor +++ b/basis/compiler/codegen/relocation/relocation-docs.factor @@ -51,7 +51,7 @@ HELP: rel-decks-offset HELP: rel-literal { $values { "literal" "a literal" } { "class" "a relocation class" } } -{ $description "Adds a refrence to a literal value to the current code offset." } ; +{ $description "Adds a reference to a literal value to the current code offset." } ; HELP: rel-safepoint { $values { "class" "a relocation class" } } diff --git a/basis/editors/vim/vim-docs.factor b/basis/editors/vim/vim-docs.factor index 67a916e5e2..1c6d9502d3 100644 --- a/basis/editors/vim/vim-docs.factor +++ b/basis/editors/vim/vim-docs.factor @@ -11,6 +11,6 @@ ARTICLE: "editors.vim" "Vim support" { "If you want to start vim in an extra terminal, use something like this:" { $code "{ \"urxvt\" \"-e\" \"vim\" } vim-path set-global" } "Replace " { $snippet "urxvt" } " by your terminal of choice." } } $nl -"You may also wish to install Vim support files to enable syntax hilighting and other features. These are in the " { $link resource-path } " in " { $snippet "misc/vim" } "." +"You may also wish to install Vim support files to enable syntax highlighting and other features. These are in the " { $link resource-path } " in " { $snippet "misc/vim" } "." { $see-also "editor" } ; diff --git a/basis/http/http-docs.factor b/basis/http/http-docs.factor index d07def55d3..00709fa742 100644 --- a/basis/http/http-docs.factor +++ b/basis/http/http-docs.factor @@ -197,9 +197,9 @@ $nl ARTICLE: "http.proxy-variables" "HTTP(S) proxy variables" { $heading "Proxy Variables" } -"The http and https proxies can be configured per request, or with Factor's dynamic variables, or with the system's environnement variables (searched from left to right) :" +"The http and https proxies can be configured per request, or with Factor's dynamic variables, or with the system's environment variables (searched from left to right) :" { $table -{ "variable" "Factor dynamic" "environnement #1" "environnement #2" } +{ "variable" "Factor dynamic" "environment #1" "environment #2" } { "HTTP" { $snippet "\"http.proxy\"" } "http_proxy" "HTTP_PROXY" } { "HTTPS" { $snippet "\"https.proxy\"" } "https_proxy" "HTTPS_PROXY" } { "no proxy" { $snippet "\"no_proxy\"" } "no_proxy" "NO_PROXY" } diff --git a/basis/ui/gadgets/line-support/line-support-docs.factor b/basis/ui/gadgets/line-support/line-support-docs.factor index 10587885e6..312ded9124 100644 --- a/basis/ui/gadgets/line-support/line-support-docs.factor +++ b/basis/ui/gadgets/line-support/line-support-docs.factor @@ -36,7 +36,7 @@ HELP: line-gadget HELP: pref-viewport-dim* { $values { "gadget" line-gadget } { "dim" array } } -{ $description "Calculates the preferred viewport dimenstions of the line gadget." } +{ $description "Calculates the preferred viewport dimensions of the line gadget." } { $see-also pref-viewport-dim } ; ARTICLE: "ui.gadgets.line-support" "Gadget line support" diff --git a/basis/ui/gadgets/tracks/tracks-docs.factor b/basis/ui/gadgets/tracks/tracks-docs.factor index 983aa23b14..b32757316b 100644 --- a/basis/ui/gadgets/tracks/tracks-docs.factor +++ b/basis/ui/gadgets/tracks/tracks-docs.factor @@ -27,6 +27,6 @@ HELP: track HELP: track-add { $values { "track" track } { "gadget" gadget } { "constraint" "a number between 0 and 1, or " { $link f } } } -{ $description "Adds a new child to a track. If the constraint is " { $link f } ", the child always occupies its preferred size. Otherwise, the constrant is a fraction of the total size which is allocated for the child." } ; +{ $description "Adds a new child to a track. If the constraint is " { $link f } ", the child always occupies its preferred size. Otherwise, the constraint is a fraction of the total size which is allocated for the child." } ; ABOUT: "ui-track-layout" diff --git a/basis/unix/groups/groups-docs.factor b/basis/unix/groups/groups-docs.factor index 6498e42e5a..e9b72fc405 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. 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." } ; +{ $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." } ; HELP: with-group-cache { $values diff --git a/core/definitions/definitions-docs.factor b/core/definitions/definitions-docs.factor index 2d39e38741..df02b8e485 100644 --- a/core/definitions/definitions-docs.factor +++ b/core/definitions/definitions-docs.factor @@ -75,7 +75,7 @@ ABOUT: "definitions" HELP: changed-definition { $values { "defspec" "definition" } } -{ $description "Adds the definitio to the unit's " { $link changed-definitions } "." } ; +{ $description "Adds the definition to the unit's " { $link changed-definitions } "." } ; HELP: changed-definitions { $var-description "A set that contains all words and vocabs whose definitions have changed or are new. " } diff --git a/core/generic/math/math-docs.factor b/core/generic/math/math-docs.factor index ed2339d8de..29ad191343 100644 --- a/core/generic/math/math-docs.factor +++ b/core/generic/math/math-docs.factor @@ -15,7 +15,7 @@ HELP: math-class-max HELP: math-upgrade { $values { "class1" class } { "class2" class } { "quot" { $quotation ( n n -- n n ) } } } -{ $description "Outputs a quotation for upgrading numberical types. It takes two numbers on the stack, an instance of " { $snippet "class1" } ", and an instance of " { $snippet "class2" } ", and converts the one with the lower priority to the higher priority type." } +{ $description "Outputs a quotation for upgrading numerical types. It takes two numbers on the stack, an instance of " { $snippet "class1" } ", and an instance of " { $snippet "class2" } ", and converts the one with the lower priority to the higher priority type." } { $examples { $example "USING: generic.math math kernel prettyprint ;" "fixnum bignum math-upgrade ." "[ [ >bignum ] dip ]" } } ; HELP: no-math-method diff --git a/core/sequences/sequences-docs.factor b/core/sequences/sequences-docs.factor index a5cc0873bb..af69bbebd9 100644 --- a/core/sequences/sequences-docs.factor +++ b/core/sequences/sequences-docs.factor @@ -528,7 +528,7 @@ HELP: find-index { "quot" { $quotation ( ... elt i -- ... ? ) } } { "i" { $maybe "the index of the first match" } } { "elt" { $maybe "the first matching element" } } } -{ $description "A varient of " { $link find } " where the quotation takes both an element and its index." } ; +{ $description "A variant of " { $link find } " where the quotation takes both an element and its index." } ; HELP: find-index-from { $values { "n" "a starting index" } @@ -536,7 +536,7 @@ HELP: find-index-from { "quot" { $quotation ( ... elt i -- ... ? ) } } { "i" { $maybe "the index of the first match" } } { "elt" { $maybe "the first matching element" } } } -{ $description "A varient of " { $link find-from } " where the quotation takes both an element and its index." } ; +{ $description "A variant of " { $link find-from } " where the quotation takes both an element and its index." } ; HELP: map-find { $values { "seq" sequence } { "quot" { $quotation ( ... elt -- ... result/f ) } } { "result" "the first non-false result of the quotation" } { "elt" { $maybe "the first matching element" } } } diff --git a/extra/talks/jvm-summit-talk/jvm-summit-talk.factor b/extra/talks/jvm-summit-talk/jvm-summit-talk.factor index 24969bc5f0..b91bf01f7a 100644 --- a/extra/talks/jvm-summit-talk/jvm-summit-talk.factor +++ b/extra/talks/jvm-summit-talk/jvm-summit-talk.factor @@ -174,7 +174,7 @@ CONSTANT: jvm-summit-slides "Even if we inline complex arithmetic methods, still dispatching on components" "Solution: propagate slot info" } - { $slide "Constrant propagation" + { $slide "Constraint propagation" "Contrieved example:" { $code "x = •" @@ -187,7 +187,7 @@ CONSTANT: jvm-summit-slides } { "We should be able to inline the call to " { $snippet "length" } " in the true branch" } } - { $slide "Constrant propagation" + { $slide "Constraint propagation" "We build a table:" { $code "b true => x is array"