[cfe-commits] Fix in documentation.
Jean-Daniel Dupas
devlists at shadowlab.org
Tue Mar 20 15:02:15 PDT 2012
Hi,
In the new objc literal documentation, there is:
NSDictionary *masses = @{ @"H" : @1.0078, @"He" : @4.0026, @"O" : @15.9990, @"C" : @12.0096 };
is equivalent to :
id keys[] = { @"H", @"He", @"O", @"C" };
id values[] = { [NSNumber numberWithFloat:1.0078], [NSNumber numberWithFloat:4.0026],
[NSNumber numberWithFloat:15.9990], [NSNumber numberWithFloat:12.0096] };
Shouldn't it be numberWithDouble instead of numberWithFloat ?
-- Jean-Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: literal.patch
Type: application/octet-stream
Size: 787 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120320/6d355dfa/attachment.obj>
More information about the cfe-commits
mailing list