Skip to content
This repository was archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
docs: make old translation consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
suica authored and mysteryven committed Nov 14, 2023
1 parent 4884057 commit 9eebfa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n/zh/docusaurus-plugin-content-docs/current/lexer.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ pub enum Kind {
}
```

但是我们知道,这个 Rust 枚举的字节大小是所有 variant 的联合 (union)。
众所周知,Rust 枚举的字节大小是其所有变体的联合 (union)。
相比原始枚举,这个枚举多了很多字节,而原始枚举只有 1 个字节。
解析器中将会大量使用 `Kind` 枚举,处理 1 个字节的枚举显然比处理多字节枚举更快。

Expand Down

0 comments on commit 9eebfa7

Please sign in to comment.