From d0ab0a09ceab61cf28fc8e1cda6e4e069ba4a52b Mon Sep 17 00:00:00 2001 From: Antoine SANSON Date: Fri, 11 Nov 2022 20:25:47 +0100 Subject: [PATCH] fix keyword var => const in note --- en/11/06.md | 2 +- fa/11/06.md | 2 +- zh/11/06.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/en/11/06.md b/en/11/06.md index 6377f85ed..6a8c623b6 100644 --- a/en/11/06.md +++ b/en/11/06.md @@ -81,7 +81,7 @@ Then, `Truffle` will take care of everything. That's pretty sweet, isn't it? 1. Below the line of code that initializes `alice` and `bob`, let's declare a variable named `contractInstance`. Don't assign it to anything. - >Note: We want `contractInstance` to be limited in scope to the block in which it's defined. Use `let` instead of `var`. + >Note: We want `contractInstance` to be limited in scope to the block in which it's defined. Use `let` instead of `const`. 2. Next, copy/paste the snippet from above for defining the `beforeEach()` function. diff --git a/fa/11/06.md b/fa/11/06.md index 6377f85ed..6a8c623b6 100644 --- a/fa/11/06.md +++ b/fa/11/06.md @@ -81,7 +81,7 @@ Then, `Truffle` will take care of everything. That's pretty sweet, isn't it? 1. Below the line of code that initializes `alice` and `bob`, let's declare a variable named `contractInstance`. Don't assign it to anything. - >Note: We want `contractInstance` to be limited in scope to the block in which it's defined. Use `let` instead of `var`. + >Note: We want `contractInstance` to be limited in scope to the block in which it's defined. Use `let` instead of `const`. 2. Next, copy/paste the snippet from above for defining the `beforeEach()` function. diff --git a/zh/11/06.md b/zh/11/06.md index 956e8968b..3768f58f1 100644 --- a/zh/11/06.md +++ b/zh/11/06.md @@ -81,7 +81,7 @@ beforeEach(async () => { 1. 在初始化 `alice` 和 `bob` 的代码行下面,让我们来声明一个名为 `contractInstance` 的变量。不要把它分配给任何东西。 - >注意:我们想要 `contractInstance` 的作用域仅限于定义它的块。使用 `let` 代替 `var`。 + >注意:我们想要 `contractInstance` 的作用域仅限于定义它的块。使用 `let` 代替 `const`。 2. 接下来,复制/粘贴上面的代码片段,以定义 `beforeEach()` 函数。