diff --git a/codes/dart/chapter_searching/two_sum.dart b/codes/dart/chapter_searching/two_sum.dart index 2b40158ff..3819670ba 100644 --- a/codes/dart/chapter_searching/two_sum.dart +++ b/codes/dart/chapter_searching/two_sum.dart @@ -31,7 +31,7 @@ List twoSumHashTable(List nums, int target) { } /* Driver Code */ -int main() { +void main() { // ======= Test Case ======= List nums = [2, 7, 11, 15]; int target = 13; @@ -43,5 +43,4 @@ int main() { // 方法二 res = twoSumHashTable(nums, target); print('方法二 res = $res'); - return 0; }