aboutsummaryrefslogtreecommitdiff
path: root/docs/ObjectiveCLiterals.html
diff options
context:
space:
mode:
authorPatrick Beard <pcbeard@mac.com>2012-03-20 22:24:08 +0000
committerPatrick Beard <pcbeard@mac.com>2012-03-20 22:24:08 +0000
commita62c3805ce2556ce34d1bcc09857df1f2b209ce0 (patch)
tree66de22d8addec1b50dd34fa65c6e366f69d706f9 /docs/ObjectiveCLiterals.html
parent12d47ccba2e6d7ac762d71beb45ae77ba7f8b04d (diff)
numberWithFloat -> numberWithDouble.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ObjectiveCLiterals.html')
-rw-r--r--docs/ObjectiveCLiterals.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ObjectiveCLiterals.html b/docs/ObjectiveCLiterals.html
index 2e533faf8a..63b523c6df 100644
--- a/docs/ObjectiveCLiterals.html
+++ b/docs/ObjectiveCLiterals.html
@@ -285,8 +285,8 @@ Programs test for the new features by using clang's __has_feature checks. Here a
#else
// old way (equivalent).
id keys[] = { @"H", @"He", @"O", @"C" };
- id values[] = { [NSNumber numberWithFloat:1.0078], [NSNumber numberWithFloat:4.0026],
- [NSNumber numberWithFloat:15.9990], [NSNumber numberWithFloat:12.0096] };
+ id values[] = { [NSNumber numberWithDouble:1.0078], [NSNumber numberWithDouble:4.0026],
+ [NSNumber numberWithDouble:15.9990], [NSNumber numberWithDouble:12.0096] };
NSDictionary *masses = [NSDictionary dictionaryWithObjects:objects forKeys:keys count:4];
#endif