Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8962095

Browse files
5.2 []struct{}
1 parent 8f23900 commit 8962095

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎performance_rule/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ cpu: AMD Ryzen 5 4600U with Radeon Graphics
7070

7171
### 5. 遍历 []struct{} 使用下标而不是 range
7272

73-
#### 5.1 []int,for与range基本无差别
73+
#### 5.1 []int,index与range基本无差别
7474

7575
| 代码 | 验证结果 |
7676
| -------------------------------------------------------- | -------------------------------------------------------- |
7777
| [iterate_int_test.go](datastructure/iterate_int_test.go) | [iterate_int_test.md](datastructure/iterate_int_test.md) |
7878

79-
#### 5.2 []struct{},for性能更优
79+
#### 5.2 []struct{},index性能更优
8080

8181
| 代码 | 验证结果 |
8282
| ------------------------------------------------------------ | ------------------------------------------------------------ |

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /