]> Repositorios git - scryer-prolog.git/commitdiff
move ~w to least prominent position, point to more suitable specifiers
authorMarkus Triska <[email protected]>
Sat, 5 Apr 2025 08:01:22 +0000 (10:01 +0200)
committerMarkus Triska <[email protected]>
Sat, 5 Apr 2025 08:01:22 +0000 (10:01 +0200)
In particular, "~q" is a safe better choice.

src/lib/format.pl

index 6f5bac9238dbac18b497179d4856fe06138fa2ae..0c6fa2db9beaebb0c6b614f87e72119aa84b8a60 100644 (file)
@@ -42,7 +42,6 @@
 % FormatString are used literally, except for the following tokens
 % with special meaning:
 %
-% | `~w`     |  use the next available argument from Arguments here           |
 % | `~q`     |  use the next argument here, formatted as by `writeq/1`        |
 % | `~a`     |  use the next argument here, which must be an atom             |
 % | `~s`     |  use the next argument here, which must be a string            |
@@ -72,6 +71,7 @@
 % | `~Nn`    |  N newlines                                                    |
 % | `~i`     |  ignore the next argument                                      |
 % | `~~`     |  the literal ~                                                 |
+% | `~w`     |  format like `write/1` would; consider using `~q`, `~d`, etc.  |
 %
 % Instead of `~N`, you can write `~*` to use the next argument from
 % Arguments as the numeric argument.