summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMikhail Koviazin <mikhail.koviazin@aiven.io>2023-12-14 22:35:29 +0700
committerGitHub <noreply@github.com>2023-12-14 16:35:29 +0100
commit6cf903f44ef9b516ad7cf01aa1fa186641033a71 (patch)
tree6d8c88943aa51b8d4a303fa4ee9214bc473933a0
parentb73467ba0dd5eb5f57b735b5ca9b2668b8c59b61 (diff)
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>
-rw-r--r--objective-c.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/objective-c.html.markdown b/objective-c.html.markdown
index c029c5fb..c179c295 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -387,7 +387,7 @@ if ([myClass respondsToSelector:selectorVar]) { // Checks if class contains meth
// Implement the methods in an implementation (MyClass.m) file:
@implementation MyClass {
long distance; // Private access instance variable
- NSNumber height;
+ NSNumber *height;
}
// To access a public variable from the interface file, use '_' followed by variable name: