From d457997830c7853db1d3220a4ffbffd4136e95b8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 6 Jan 2021 14:08:10 +0530 Subject: [PATCH] String changes --- manual/template_lang.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/template_lang.rst b/manual/template_lang.rst index cbb9da7a76..4824b56c6c 100644 --- a/manual/template_lang.rst +++ b/manual/template_lang.rst @@ -519,7 +519,7 @@ parameters can be statements (sequences of expressions). Note that the definitiv * ``substr(str, start, end)`` -- returns the ``start``'th through the ``end``'th characters of ``str``. The first character in ``str`` is the zero'th character. If end is negative, then it indicates that many characters counting from the right. If end is zero, then it indicates the last character. For example, ``substr('12345', 1, 0)`` returns ``'2345'``, and ``substr('12345', 1, -1)`` returns ``'234'``. - * ``subtract(x, y)`` -- returns ``x - y. Throws an exception if either ``x`` or ``y`` are not numbers. + * ``subtract(x, y)`` -- returns ``x - y``. Throws an exception if either ``x`` or ``y`` are not numbers. * ``today()`` -- return a date string for today. This value is designed for use in `format_date` or `days_between`, but can be manipulated like any other string. The date is in ISO format. * ``template(x)`` -- evaluates ``x`` as a template. The evaluation is done in its own context, meaning that variables are not shared between