From 467e5bf62e3119deee10697a88b41929b2aad8cb Mon Sep 17 00:00:00 2001 From: Wecle <837968732@qq.com> Date: Wed, 14 Aug 2024 00:23:09 +0800 Subject: [PATCH] docs(solidity-101/09_Constant): replace solidity version about immutable from v8.0.21 to v0.8.21 --- docs/solidity-101/09_Constant/readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/solidity-101/09_Constant/readme.md b/docs/solidity-101/09_Constant/readme.md index ed179d2e..72676b33 100755 --- a/docs/solidity-101/09_Constant/readme.md +++ b/docs/solidity-101/09_Constant/readme.md @@ -40,7 +40,7 @@ address constant CONSTANT_ADDRESS = 0x0000000000000000000000000000000000000000; ### immutable -`immutable`变量可以在声明时或构造函数中初始化,因此更加灵活。在`Solidity v8.0.21`以后,`immutable`变量不需要显式初始化。反之,则需要显式初始化。 +`immutable`变量可以在声明时或构造函数中初始化,因此更加灵活。在`Solidity v0.8.21`以后,`immutable`变量不需要显式初始化。反之,则需要显式初始化。 若`immutable`变量既在声明时初始化,又在constructor中初始化,会使用constructor初始化的值。 ``` solidity