Skip to content

Commit

Permalink
Fix Scan arguments in ListUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
oloryn committed Jan 27, 2023
1 parent 804b9c1 commit 9406508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post05.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ func ListUsers() ([]Userdata, error) {
var name string
var surname string
var description string
err = rows.Scan(&id, &username, &surname, &description)
err = rows.Scan(&id, &username, &name, &surname, &description)
temp := Userdata{ID: id, Username: username, Name: name, Surname: surname, Description: description}
Data = append(Data, temp)
if err != nil {
Expand Down

0 comments on commit 9406508

Please sign in to comment.