about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-09-21T14·30+0200
committerGitHub <noreply@github.com>2016-09-21T14·30+0200
commit3f8e620b1907968c47bdbe955095301159dc78ad (patch)
tree5bd4ba6216250433972311b7fbe0ee00c06dc3cf /doc
parent3fcfd899f829da15b73fde233d249b4a98aee36e (diff)
parent7d7ec2b3a87e8a26215fc67cd5431330c6ab4615 (diff)
Merge pull request #1068 from zimbatm/doc-set-toString
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>