Skip to content

Commit 89ad530

Browse files
committed
minor edits in recover
1 parent 787d661 commit 89ad530

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

internal/exercises/catalog.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -192,20 +192,16 @@ projects:
192192
- Implement MarshalPerson to convert a struct into JSON using json.Marshal.
193193
- Implement UnmarshalPerson to convert a JSON string into a struct using json.Unmarshal.
194194
- Handle and return errors properly in both functions.
195-
196195
- slug: 109_epoch
197196
title: "Epoch Conversion"
198-
difficulty: beginner
199-
topics: ["time", "epoch", "unix"]
197+
test_regex: ".*"
200198
hints:
201199
- "Use Go's `time.Unix()` to convert an epoch to time."
202200
- "Use `t.Unix()` to convert time back to epoch."
203201
- "Remember Go’s `time.Parse` can help parse date strings."
204-
205202
- slug: 110_recover
206203
title: Safe Panic Recovery
207-
difficulty: medium
208-
topics: ["panic", "recover", "defer"]
204+
test_regex: ".*"
209205
hints:
210206
- hint_type: concept
211207
text: The `recover()` function is ONLY useful inside a function that is executed by a `defer` statement. Outside of a deferred function, `recover` will return `nil` and have no effect.

0 commit comments

Comments
 (0)