Skip to content

Commit e28ac19

Browse files
author
翟佳宇
authored
docs: fix typo in Bubble sort doc (doocs#618)
1 parent cc82696 commit e28ac19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basic/sorting/BubbleSort/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
定义一个布尔变量 `hasChange`,用来标记每轮是否进行了交换。在每轮遍历开始时,将 `hasChange` 设置为 false。
44

5-
若当轮没有发生交换,说明此时数组已经按照升序排列,`hashChange` 依然是为 false。此时外层循环直接退出,排序结束。
5+
若当轮没有发生交换,说明此时数组已经按照升序排列,`hasChange` 依然是为 false。此时外层循环直接退出,排序结束。
66

77
## 代码示例
88

0 commit comments

Comments
 (0)