diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-09-21 11:36:03 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-09-21 14:52:26 +0100 |
commit | 7d7ec2b3a87e8a26215fc67cd5431330c6ab4615 (patch) | |
tree | 5bd4ba6216250433972311b7fbe0ee00c06dc3cf | |
parent | 3fcfd899f829da15b73fde233d249b4a98aee36e (diff) |
Document the { __toString } interface
-rw-r--r-- | doc/manual/expressions/builtins.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index 6ac802343..9517f2010 100644 --- a/doc/manual/expressions/builtins.xml +++ b/doc/manual/expressions/builtins.xml @@ -995,9 +995,9 @@ in foo</programlisting> <listitem><para>Convert the expression <replaceable>e</replaceable> to a string. <replaceable>e</replaceable> can be a string (in which case - <function>toString</function> is a no-op) or a path (e.g., + <function>toString</function> is a no-op), a path (e.g., <literal>toString /foo/bar</literal> yields - <literal>"/foo/bar"</literal>.</para></listitem> + <literal>"/foo/bar"</literal> or a set containing <literal>{ __toString = self: ...; }</literal>.</para></listitem> </varlistentry> |