summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWesley Hill <hako@users.noreply.github.com>2013-09-09 01:30:43 +0100
committerWesley Hill <hako@users.noreply.github.com>2013-09-09 01:30:43 +0100
commit3ea52a10845e8e6a052443c12abdc012534c6210 (patch)
treec1402604185a1121dd8363839a4f6159e005f61b
parent5a87423e209ee77b53e20f70ccc87c26511c4869 (diff)
corrected issue on floating point literals.
-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 926a4a0d..1ed0ed58 100644
--- a/objective-c.html.markdown
+++ b/objective-c.html.markdown
@@ -80,7 +80,7 @@ int main (int argc, const char * argv[])
NSLog(@"%f", piFloat);
NSNumber *piDoubleNumber = @3.1415926535;
- piDouble = [piDoubleNumber doubleValue];
+ double piDouble = [piDoubleNumber doubleValue];
NSLog(@"%f", piDouble);
// BOOL literals