diff --git a/doc/manual/expressions/builtins.xml b/doc/manual/expressions/builtins.xml index 063bc04be..6c38941c0 100644 --- a/doc/manual/expressions/builtins.xml +++ b/doc/manual/expressions/builtins.xml @@ -1023,10 +1023,18 @@ in foo Convert the expression e to a string. - e can be a string (in which case - toString is a no-op), a path (e.g., - toString /foo/bar yields - "/foo/bar" or a set containing { __toString = self: ...; }. + e can be: + + a string (in which case the string is returned unmodified) + a path (e.g., toString /foo/bar yields "/foo/bar" + a set containing { __toString = self: ...; } + an integer + a list, in which case the string representations of its elements are joined with spaces + a boolean (false yields "", true yields "1" + null, which yields the empty string. + + +