mirror of
https://github.com/NixOS/nix.git
synced 2024-11-25 16:23:02 +00:00
Document the { __toString } interface
This commit is contained in:
parent
3fcfd899f8
commit
7d7ec2b3a8
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user