Skip to content

Commit 1a4cb6e

Browse files
committed
Make problem stringer work
1 parent 7b284a7 commit 1a4cb6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

api/problem.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ type Problem struct {
1717
Files map[string]string `json:"files"`
1818
}
1919

20-
func (p *Problem) String() {
21-
fmt.Sprintf("%s - %s in %s", p.ID, p.Name, p.Language)
20+
func (p *Problem) String() string {
21+
return fmt.Sprintf("%s - %s in %s", p.ID, p.Name, p.Language)
2222
}
2323

2424
func (p *Problem) ExistsIn(dir string) bool {

0 commit comments

Comments
 (0)