doc: fix a typo in the api/globals
Checklist
-
documentation is changed or added -
the commit message follows commit guidelines
Affected core subsystem(s)
- doc
Description of change
There is a typo in __dirname section. This fixes #6431 (closed) issue.