mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 17:16:15 +02:00
Merge pull request #1068 from zimbatm/doc-set-toString
Document the { __toString } interface
This commit is contained in:
commit
3f8e620b19
1 changed files with 2 additions and 2 deletions
|
@ -995,9 +995,9 @@ in foo</programlisting>
|
||||||
<listitem><para>Convert the expression
|
<listitem><para>Convert the expression
|
||||||
<replaceable>e</replaceable> to a string.
|
<replaceable>e</replaceable> to a string.
|
||||||
<replaceable>e</replaceable> can be a string (in which case
|
<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>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>
|
</varlistentry>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue