Fix the Go code of insertion sort.

pull/102/head
Yudong Jin 2 years ago
parent 6f5d00f827
commit d612bea748

@ -1,6 +1,6 @@
//File: insertion_sort.go
//Created Time: 2022-12-12
//Author: msk397 (machangxinq@gmail.com)
// File: insertion_sort.go
// Created Time: 2022-12-12
// Author: msk397 (machangxinq@gmail.com)
package insertion_sort

@ -1,6 +1,6 @@
//File: insertion_sort_test.go
//Created Time: 2022-12-12
//Author: msk397 (machangxinq@gmail.com)
// File: insertion_sort_test.go
// Created Time: 2022-12-12
// Author: msk397 (machangxinq@gmail.com)
package insertion_sort
@ -12,5 +12,5 @@ import (
func TestInsertionSort(t *testing.T) {
nums := []int{4, 1, 3, 1, 5, 2}
insertionSort(nums)
fmt.Println("插入排序完成后 nums = ", nums)
fmt.Println("插入排序完成后 nums =", nums)
}

Loading…
Cancel
Save