Skip to content

Commit 22013fa

Browse files
authored
Replace print for show
1 parent 3f4c85b commit 22013fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/go/unordered_linked_list.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func size(list *List) int {
4545
}
4646

4747
// Prints the values of the elements in the list
48-
func print(list *List) {
48+
func show(list *List) {
4949
for i := 0; i < list.numberOfElements; i++ {
5050
fmt.Printf("%v ", list.recordArray[i].value)
5151
}
@@ -130,7 +130,7 @@ func main() {
130130

131131
fmt.Println()
132132
fmt.Println("Printing the list...")
133-
print(&list)
133+
show(&list)
134134
fmt.Println("Size of the list:", size(&list))
135135

136136
fmt.Println()
@@ -140,7 +140,7 @@ func main() {
140140

141141
fmt.Println()
142142
fmt.Println("Printing the list...")
143-
print(&list)
143+
show(&list)
144144
fmt.Println("Size of the list:", size(&list))
145145

146146
fmt.Println()

0 commit comments

Comments
 (0)