diff --git a/clang/docs/ObjectiveCLiterals.rst b/clang/docs/ObjectiveCLiterals.rst index 1b5868e7d287c717227a429e8bb1081e30932152..9fe7f66dffbf3bd69e513b336dedbff6c57a93e0 100644 --- a/clang/docs/ObjectiveCLiterals.rst +++ b/clang/docs/ObjectiveCLiterals.rst @@ -136,8 +136,8 @@ and some C structures (via NSValue) are supported: NSString *path = @(getenv("PATH")); // [NSString stringWithUTF8String:(getenv("PATH"))] NSArray *pathComponents = [path componentsSeparatedByString:@":"]; - // NS structs - NSValue *center = @(view.center); // Point p = view.point; + // structs. + NSValue *center = @(view.center); // Point p = view.center; // [NSValue valueWithBytes:&p objCType:@encode(Point)]; NSValue *frame = @(view.frame); // Rect r = view.frame; // [NSValue valueWithBytes:&r objCType:@encode(Rect)];