variable.md: clarify 'trim' example

- 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
This commit is contained in:
Jay Satiro 2025-02-16 03:05:15 -05:00
parent 28d3c5dced
commit 4a74135737

View 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.