]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
variable.md: clarify 'trim' example
authorJay Satiro <raysatiro@yahoo.com>
Sun, 16 Feb 2025 08:05:15 +0000 (03:05 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 16 Feb 2025 23:52:48 +0000 (18:52 -0500)
- Use the variable name 'var' instead of 'url' since the latter is also
  a function name and that may confuse the user.

Closes https://github.com/curl/curl/pull/16346

docs/cmdline-opts/variable.md

index 5b23e1fc4231b34a7d4fb5429ee229118cb51f4c..1a0e70e2090c0b9fbc97e7b70781afca42e16571 100644 (file)
@@ -71,7 +71,7 @@ removes all leading and trailing white space.
 
 Example:
 
-    curl --expand-url https.//example.com/{{url:trim}}
+    curl --expand-url https://example.com/{{var:trim}}
 
 ## json
 outputs the content using JSON string quoting rules.