From 16c111ba8050c5a94f024524c5c0f433c30edf4f Mon Sep 17 00:00:00 2001 From: Patrick Beard Date: Thu, 19 Apr 2012 20:48:09 +0000 Subject: [PATCH] Added equivalent method calls in examples. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155155 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ObjectiveCLiterals.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ObjectiveCLiterals.html b/docs/ObjectiveCLiterals.html index 000c713697..ca7704d0a2 100644 --- a/docs/ObjectiveCLiterals.html +++ b/docs/ObjectiveCLiterals.html @@ -111,15 +111,15 @@ are supported:

 // numbers.
-NSNumber *smallestInt = @(-INT_MAX - 1);
-NSNumber *piOverTwo = @(M_PI / 2);
+NSNumber *smallestInt = @(-INT_MAX - 1);  // [NSNumber numberWithInt:(-INT_MAX - 1)]
+NSNumber *piOverTwo = @(M_PI / 2);        // [NSNumber numberWithDouble:(M_PI / 2)]
 
 // enumerated types.
 typedef enum { Red, Green, Blue } Color;
-NSNumber *favoriteColor = @(Green);
+NSNumber *favoriteColor = @(Green);       // [NSNumber numberWithInt:((int)Green)]
 
 // strings.
-NSString *path = @(getenv("PATH"));
+NSString *path = @(getenv("PATH"));       // [NSString stringWithUTF8String:(getenv("PATH"))]
 NSArray *pathComponents = [path componentsSeparatedByString:@":"];
 
-- 2.40.0