doc: fix mistake in path.relative
The docs implied that the parameters from
and to
are invalid only if neither of them is a string; in fact, they are invalid as soon as one of them is not a string.
Checklist
-
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
doc