diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-09-21T14·30+0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-21T14·30+0200 |
commit | 3f8e620b1907968c47bdbe955095301159dc78ad (patch) | |
tree | 5bd4ba6216250433972311b7fbe0ee00c06dc3cf | |
parent | 3fcfd899f829da15b73fde233d249b4a98aee36e (diff) | |
parent | 7d7ec2b3a87e8a26215fc67cd5431330c6ab4615 (diff) |
Merge pull request #1068 from zimbatm/doc-set-toString
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 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> |