Mid-Level
October 4, 2026Spot the bug: iOS
One snippet. Find the bug, or prove there isn't one.
swift
1import CoreData
2
3func transferFunds(from: Account, to: Account, amount: Double, context: NSManagedObjectContext) throws {
4 from.balance -= amount
5 try context.save()
6 to.balance += amount
7 try context.save()
8}Click the lines that carry the problem.
Your verdict
One attempt per day. The answer shows up right after.
Keep your streak
Create an account to keep your streak and track your progress.