Syntax error in Sprite Kit documentation

Originator:kishyr
Number:rdar://14215660 Date Originated:20 June 2013
Status:Fixed Resolved:before 21 June 2013
Product:Sprite Kit Product Version:iOS 7
Classification: Reproducible:
 
Listing 6-4 has a syntax error in the documentation entitled "Working with Other Node Types" found at this link:
https://developer.apple.com/library/prerelease/ios/documentation/GraphicsAnimation/Conceptual/SpriteKit_PG/OtherNodeClasses/OtherNodeClasses.html#//apple_ref/doc/uid/TP40013043-CH10-SW1

Expected Results:
The third line should be:
NSString *smokePath = [[NSBundle mainBundle] pathForResource:@"smoke" ofType:@"skn"];

Actual Results:
The third line is:
[   NSString *smokePath = [NSBundle mainBundle] pathForResource:@"smoke" ofType:@"skn"];

Notes:
The opening square bracket "[" is before the "NSString" instead of before "[NSBundle"

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!