diff --git a/doc/api/util.md b/doc/api/util.md index 694bda0a473..248ab7c3677 100644 --- a/doc/api/util.md +++ b/doc/api/util.md @@ -660,8 +660,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 }); ```