Fixed Xcode error from documentation example