diff --git a/doc/api/util.md b/doc/api/util.md index 15f1cc1516f6f9..7f15d418be2ed5 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -668,8 +668,8 @@ The mapping between error codes and string messages is platform-dependent. ```js fs.access('file/that/does/not/exist', (err) => { - const name = util.getSystemErrorMessage(err.errno); - console.error(name); // No such file or directory + const message = util.getSystemErrorMessage(err.errno); + console.error(message); // No such file or directory }); ```