We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b22da71 commit 3f4c85bCopy full SHA for 3f4c85b
src/go/sorted_linked_list.go
@@ -45,7 +45,7 @@ func size(list *List) int {
45
}
46
47
// Prints the values of the elements in the list
48
-func print(list *List) {
+func show(list *List) {
49
for i := 0; i < list.numberOfElements; i++ {
50
fmt.Printf("%v ", list.recordArray[i].value)
51
@@ -127,7 +127,7 @@ func main() {
127
128
fmt.Println()
129
fmt.Println("Printing the list...")
130
- print(&list)
+ show(&list)
131
fmt.Println("Size of the list:", size(&list))
132
133
@@ -137,7 +137,7 @@ func main() {
137
138
139
140
141
142
143
0 commit comments