We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f4c85b commit 22013faCopy full SHA for 22013fa
src/go/unordered_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
@@ -130,7 +130,7 @@ func main() {
130
131
fmt.Println()
132
fmt.Println("Printing the list...")
133
- print(&list)
+ show(&list)
134
fmt.Println("Size of the list:", size(&list))
135
136
@@ -140,7 +140,7 @@ func main() {
140
141
142
143
144
145
146
0 commit comments