Skip to content

Commit e01e794

Browse files
committed
2 parents dddd67d + 8419473 commit e01e794

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/exercises/solutions/36_json/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ func UnmarshalPerson(jsonStr string) (Person, error) {
3232
return Person{}, err
3333
}
3434
return p, nil
35-
}
35+
}

internal/exercises/templates/36_json/json.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ func MarshalPerson(p Person) (string, error) {
2121
// UnmarshalPerson should convert a JSON string to a Person struct.
2222
func UnmarshalPerson(jsonStr string) (Person, error) {
2323
return Person{}, nil
24-
}
24+
}

internal/exercises/templates/36_json/json_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ func TestUnmarshalPerson(t *testing.T) {
3030
if p.Email != "golearn@example.com" {
3131
t.Errorf("Expected email 'golearn@example.com', got %s", p.Email)
3232
}
33-
}
33+
}

0 commit comments

Comments
 (0)