From d095c62c540354246092555b579c74a7e6a5f9a4 Mon Sep 17 00:00:00 2001 From: MaleDong Date: Mon, 29 Apr 2019 08:29:11 +0800 Subject: [PATCH] Fix: Fixture of the broken link Ref: https://github.com/nodejs/nodejs.org/issues/2211 'error callback convention' link is broken, this is the fixture for it. --- .../getting-started/control-flow/what-are-callbacks.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/locale/en/knowledge/getting-started/control-flow/what-are-callbacks.md b/locale/en/knowledge/getting-started/control-flow/what-are-callbacks.md index 18515791498ea..022b5194a8f74 100644 --- a/locale/en/knowledge/getting-started/control-flow/what-are-callbacks.md +++ b/locale/en/knowledge/getting-started/control-flow/what-are-callbacks.md @@ -51,4 +51,4 @@ The typical convention with asynchronous functions (which almost all of your fun //This code gets run after the async operation gets run }); -You will almost always want to follow the [error callback convention](/articles/errors/what-are-the-error-conventions), since most Node.js users will expect your project to follow them. The general idea is that the callback is the last parameter. The callback gets called after the function is done with all of its operations. Traditionally, the first parameter of the callback is the `error` value. If the function hits an error, then they typically call the callback with the first parameter being an Error object. If it cleanly exits, then they will call the callback with the first parameter being null and the rest being the return value(s). +You will almost always want to follow the [error callback convention](/en/knowledge/errors/what-are-the-error-conventions), since most Node.js users will expect your project to follow them. The general idea is that the callback is the last parameter. The callback gets called after the function is done with all of its operations. Traditionally, the first parameter of the callback is the `error` value. If the function hits an error, then they typically call the callback with the first parameter being an Error object. If it cleanly exits, then they will call the callback with the first parameter being null and the rest being the return value(s).