Skip to content

Commit

Permalink
Merge pull request #495 from charliex2/patch-3
Browse files Browse the repository at this point in the history
fix: description of fixed-size byte array
  • Loading branch information
AmazingAng committed May 10, 2023
2 parents 0f86a01 + aad6e0e commit 04a4fcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 02_ValueTypes/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ tags:

### 4. 定长字节数组

字节数组 `bytes` 分为定长和不定长两种
字节数组分为定长和不定长两种

- 定长字节数组: 属于数值类型,数组长度在声明之后不能改变。根据每个元素存储数据的大小分为 `bytes1`, `bytes8`, `bytes32` 等类型,每个元素最多存储 32 bytes 数据。
- 定长字节数组: 属于数值类型,数组长度在声明之后不能改变。根据字节数组的长度分为 `bytes1`, `bytes8`, `bytes32` 等类型。定长字节数组最多存储 32 bytes 数据,即`bytes32`
- 不定长字节数组: 属于引用类型(之后的章节介绍),数组长度在声明之后可以改变,包括 `bytes` 等。

```solidity
Expand Down

0 comments on commit 04a4fcc

Please sign in to comment.