]> gitweb.factorcode.org Git - factor.git/commitdiff
docs: fix spacing
authorDoug Coleman <doug.coleman@gmail.com>
Sat, 11 Mar 2023 13:12:10 +0000 (07:12 -0600)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 13 Mar 2023 23:08:20 +0000 (18:08 -0500)
basis/db/db-docs.factor
basis/editors/editors-docs.factor
basis/furnace/asides/asides-docs.factor
basis/help/tour/tour.factor
basis/sequences/generalizations/generalizations-docs.factor
basis/suffix-arrays/suffix-arrays-tests.factor
basis/threads/threads-docs.factor
core/math/parser/parser-tests.factor

index 0b096e0d01b7ddd8fc753e7f404c656ebcd8a102..44a708ceb3ed3e01ddbdf34e94fea879f0177155 100644 (file)
@@ -39,8 +39,8 @@ HELP: result-set
 
 HELP: new-result-set
 { $values
-     { "query" "a query" } { "handle" alien } { "class" class }
-     { "result-set" result-set } }
+    { "query" "a query" } { "handle" alien } { "class" class }
+    { "result-set" result-set } }
 { $description "Creates a new " { $link result-set } " object of type " { $snippet "class" } "." } ;
 
 HELP: new-statement
@@ -49,12 +49,12 @@ HELP: new-statement
 
 HELP: bind-statement
 { $values
-     { "obj" object } { "statement" statement } }
+    { "obj" object } { "statement" statement } }
 { $description "Sets the statement's " { $slot "bind-params" } " and calls " { $link bind-statement* } " to do the database-specific bind. Sets " { $slot "bound?" } " to true if binding succeeds." } ;
 
 HELP: bind-statement*
 { $values
-     { "statement" statement } }
+    { "statement" statement } }
 { $description "Does a low-level bind of the SQL statement's tuple parameters if the database requires. Some databases should treat this as a no-op and bind instead when the actual statement is run." } ;
 
 HELP: <simple-statement>
@@ -74,7 +74,7 @@ HELP: prepare-statement
 
 HELP: low-level-bind
 { $values
-     { "statement" statement } }
+    { "statement" statement } }
 { $description "For use with prepared statements, methods on this word should bind the datatype in the SQL spec to its identifier in the SQL string. To name bound variables, SQLite uses identifiers in the form of " { $snippet ":name" } ", while PostgreSQL uses increasing numbers beginning with a dollar sign, e.g. " { $snippet "$1" } "." } ;
 
 HELP: query-results
@@ -123,18 +123,18 @@ HELP: in-transaction
 
 HELP: in-transaction?
 { $values
-     { "?" boolean } }
+    { "?" boolean } }
 { $description "Returns true if there is currently a transaction in progress in this scope." } ;
 
 HELP: query-each
 { $values
-     { "result-set" result-set } { "quot" quotation } }
+    { "result-set" result-set } { "quot" quotation } }
 { $description "Applies the quotation to each row of the " { $link result-set } " in order." } ;
 
 HELP: query-map
 { $values
-     { "result-set" result-set } { "quot" quotation }
-     { "seq" sequence } }
+    { "result-set" result-set } { "quot" quotation }
+    { "seq" sequence } }
 { $description "Applies the quotation to each row of the " { $link result-set } " in order." } ;
 
 HELP: rollback-transaction
@@ -142,39 +142,39 @@ HELP: rollback-transaction
 
 HELP: sql-command
 { $values
-     { "sql" string } }
+    { "sql" string } }
 { $description "Executes an SQL string using the database in the " { $link db-connection } " symbol." } ;
 
 HELP: sql-query
 { $values
-     { "sql" string }
-     { "rows" "an array of arrays of strings" } }
+    { "sql" string }
+    { "rows" "an array of arrays of strings" } }
 { $description "Runs an SQL query of raw text in the database in the " { $link db-connection } " symbol. Each row is returned as an array of strings; no type-conversions are done on the resulting data." } ;
 
 { sql-command sql-query } related-words
 
 HELP: sql-row
 { $values
-     { "result-set" result-set }
-     { "seq" sequence } }
+    { "result-set" result-set }
+    { "seq" sequence } }
 { $description "Returns the current row in a " { $link result-set } " as an array of strings." } ;
 
 HELP: sql-row-typed
 { $values
-     { "result-set" result-set }
-     { "seq" sequence } }
+    { "result-set" result-set }
+    { "seq" sequence } }
 { $description "Returns the current row in a " { $link result-set } " as an array of typed Factor objects." } ;
 
 { sql-row sql-row-typed } related-words
 
 HELP: with-db
 { $values
-     { "db" "a database configuration object" } { "quot" quotation } }
+    { "db" "a database configuration object" } { "quot" quotation } }
 { $description "Calls the quotation with a database bound to the " { $link db-connection } " symbol. See " { $link "db-custom-database-combinators" } " for help setting up database access." } ;
 
 HELP: with-transaction
 { $values
-     { "quot" quotation } }
+    { "quot" quotation } }
 { $description "Calls the quotation inside a database transaction and commits the result to the database after the quotation finishes. If the quotation throws an error, the transaction is aborted." } ;
 
 ARTICLE: "db" "Database library"
index 38405f6788a0b96859985cc65a2b4ddb59fd12e7..356aa76bbc4f12ae8f38489c8dbc0d21618b7914 100644 (file)
@@ -32,7 +32,7 @@ $nl
     "a child process." }
 }
 $nl
-"Every editor is required to reserve its own " { $link editor-class }  ". For example:"
+"Every editor is required to reserve its own " { $link editor-class } ". For example:"
 { $code "SINGLETON: foo" }
 { $link editor-class } " will be set to this singleton when Factor is set to use your editor of"
 " choice. Now, we will define words that will dispatch when the editor class is set to " 
index 099ff80ad4d8f550473c114102b96e9e923b889e..a424cdd2cff70896c9cb2a2eee57f0e3d0a344a0 100644 (file)
@@ -4,8 +4,8 @@ IN: furnace.asides
 
 HELP: <asides>
 { $values
-     { "responder" "a responder" }
-     { "responder'" "a new responder" }
+    { "responder" "a responder" }
+    { "responder'" "a new responder" }
 }
 { $description "Creates a new " { $link asides } " responder wrapping an existing responder." } ;
 
index 614bd9a26dd92d306d0dd89b98c56df2a160e15a..3acb1bb0639f2b45f8a793d64466ed570685e8c5 100644 (file)
@@ -639,9 +639,9 @@ them, which are embodied in the listener. Many functions of the listener can be
 You have seen some examples of this:
 
 { $list
-  { "The help is navigable online, but you can also invoke it with "  { $link help }  " and print help items with "  { $link print-content }  " ; "  }
-  { "The "  { $snippet  "F2"  }  " shortcut or the words "  { $link refresh }  " and "  { $link refresh-all }  " can be used to refresh vocabularies from disk while continuing working in the listener; "  }
-  { "The "  { $link edit  }  " word gives you editor integration, but you can also click on file names in the help pages for vocabularies to open them. "  }
+  { "The help is navigable online, but you can also invoke it with " { $link help } " and print help items with " { $link print-content } " ; " }
+  { "The " { $snippet "F2" } " shortcut or the words " { $link refresh } " and " { $link refresh-all } " can be used to refresh vocabularies from disk while continuing working in the listener;" }
+  { "The " { $link edit } " word gives you editor integration, but you can also click on file names in the help pages for vocabularies to open them." }
 }
 
 The refresh is an efficient mechanism. Whenever a word is redefined, words that depend on it are recompiled against the new 
index 5962921e5cdd3f5ffa8892b26db1b8b268e89cc5..1e1472691308b6470c52f9185e5df1a914d11bed 100644 (file)
@@ -50,7 +50,7 @@ HELP: firstn
 
 HELP: ?firstn
 { $values { "n" integer } }
-{ $description "A generalization of " { $link ?first } " that pushes the first " { $snippet "n" } " elements of a sequence on the stack, or " { $link f }  " if the sequence is shorter than the requested number of elements." }
+{ $description "A generalization of " { $link ?first } " that pushes the first " { $snippet "n" } " elements of a sequence on the stack, or " { $link f } " if the sequence is shorter than the requested number of elements." }
 { $examples
     "Some core words expressed in terms of " { $link ?firstn } ":"
     { $table
index 3240fe3182d387ac92ed9c6bc24c367c74452602..dfc49cc687fc68b12aa5c0e5f957a13c1c11e381 100644 (file)
@@ -4,7 +4,7 @@ USING: tools.test suffix-arrays kernel namespaces sequences ;
 
 ! built from [ all-words 10 head [ name>> ] map ]
 { } [
-     {
+    {
         "run-tests"
         "must-fail-with"
         "test-all"
index 780875cbe81dec1f461b2d240ec60198a65bd200..d8770b393a042f77cb594f4e876899e7fbf08ac2 100644 (file)
@@ -175,7 +175,7 @@ HELP: spawn
 $nl
 "The new thread begins with an empty data stack, an empty retain stack, and an empty catch stack. The name stack is inherited from the parent thread but may be cleared with " { $link init-namestack } "." }
 { $notes
-     "The recommended way to pass data to the new thread is to explicitly construct a quotation containing the data, for example using " { $link curry } " or " { $link compose } "."
+    "The recommended way to pass data to the new thread is to explicitly construct a quotation containing the data, for example using " { $link curry } " or " { $link compose } "."
 }
 { $examples
     "A simple thread that adds two numbers:"
index cb1b2653bca07f470e26883576f4decef71149f8..e14a801ca5d46d04fecb08f0f849b08da69610e1 100644 (file)
@@ -198,7 +198,7 @@ unit-test
 [ 2+1/2 -1 >base ] [ invalid-radix? ] must-fail-with
 [ 123.456 7 >base ] [ invalid-radix? ] must-fail-with
 
-{  "0/0." } [ 0/0. number>string ] unit-test
+{  "0/0." } [  0/0. number>string ] unit-test
 { "-0/0." } [ -0/0. number>string ] unit-test
 
 { t } [  "0/0." string>number fp-nan? ] unit-test