doc: add simple example to rename function
Added a simple example showing how to rename a file.
Refs: https://github.com/nodejs/node/issues11135
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
documentation is changed or added -
commit message follows [commit guidelines]
Affected core subsystem(s)
-
doc