Skip to content

Commit 4190eca

Browse files
fix(Go): code comment error (#1404)
* fix: comment error * fix: comment error in zn-hant version
1 parent a7c2416 commit 4190eca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codes/go/chapter_divide_and_conquer/binary_search_recur.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func dfs(nums []int, target, i, j int) int {
1818
// 递归子问题 f(m+1, j)
1919
return dfs(nums, target, m+1, j)
2020
} else if nums[m] > target {
21-
// 小于则递归左半数组
21+
// 大于则递归左半数组
2222
// 递归子问题 f(i, m-1)
2323
return dfs(nums, target, i, m-1)
2424
} else {

zh-hant/codes/go/chapter_divide_and_conquer/binary_search_recur.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func dfs(nums []int, target, i, j int) int {
1818
// 遞迴子問題 f(m+1, j)
1919
return dfs(nums, target, m+1, j)
2020
} else if nums[m] > target {
21-
// 小於則遞迴左半陣列
21+
// 大於則遞迴左半陣列
2222
// 遞迴子問題 f(i, m-1)
2323
return dfs(nums, target, i, m-1)
2424
} else {

0 commit comments

Comments
 (0)