Add forgotten asterisk in MyClass implementation (#4289)

Without it, the program doesn't compile:
```
Interface type cannot be statically allocated
```

Co-authored-by: Reverend Homer <mk.43.ecko@gmail.com>
This commit is contained in:
Mikhail Koviazin 2023-12-14 22:35:29 +07:00 committed by GitHub
parent b73467ba0d
commit 6cf903f44e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,7 @@ if ([myClass respondsToSelector:selectorVar]) { // Checks if class contains meth
// Implement the methods in an implementation (MyClass.m) file: // Implement the methods in an implementation (MyClass.m) file:
@implementation MyClass { @implementation MyClass {
long distance; // Private access instance variable long distance; // Private access instance variable
NSNumber height; NSNumber *height;
} }
// To access a public variable from the interface file, use '_' followed by variable name: // To access a public variable from the interface file, use '_' followed by variable name: