Spot the bug in the map element method

from Methods
Go 1.27 intermediate 4 min 1 issue to find

Find why MarkDone cannot be called on this map element.

Go
type Job struct {
    Done bool
}

func (job *Job) MarkDone() {
    job.Done = true
}

func finish(jobs map[string]Job, id string) {
    jobs[id].MarkDone()
}
Open in playground
Report an error