about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorzimbatm <zimbatm@zimbatm.com>2016-09-21T10·36+0100
committerzimbatm <zimbatm@zimbatm.com>2016-09-21T13·52+0100
commit7d7ec2b3a87e8a26215fc67cd5431330c6ab4615 (patch)
tree5bd4ba6216250433972311b7fbe0ee00c06dc3cf /doc
parent3fcfd899f829da15b73fde233d249b4a98aee36e (diff)
Document the { __toString } interface
Diffstat (limited to 'doc')
-rw-r--r--doc/manual/expressions/builtins.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml
index 6ac802343236..9517f20106ef 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>