1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-14 10:45:06 +02:00

grammar + spelling errors

This commit is contained in:
jesusjjf
2016-04-05 20:02:46 -07:00
parent 8ddf7b5178
commit 591eab5e4f

View File

@@ -110,7 +110,7 @@ int main (int argc, const char * argv[])
NSLog(@"%f", piDouble); NSLog(@"%f", piDouble);
NSLog(@"%4.2f", piDouble); // prints => "3.14" NSLog(@"%4.2f", piDouble); // prints => "3.14"
// NSDecimalNumber is a fixed-point class that's more precise then float or double // NSDecimalNumber is a fixed-point class that's more precise than float or double
NSDecimalNumber *oneDecNum = [NSDecimalNumber decimalNumberWithString:@"10.99"]; NSDecimalNumber *oneDecNum = [NSDecimalNumber decimalNumberWithString:@"10.99"];
NSDecimalNumber *twoDecNum = [NSDecimalNumber decimalNumberWithString:@"5.002"]; NSDecimalNumber *twoDecNum = [NSDecimalNumber decimalNumberWithString:@"5.002"];
// NSDecimalNumber isn't able to use standard +, -, *, / operators so it provides its own: // NSDecimalNumber isn't able to use standard +, -, *, / operators so it provides its own:
@@ -700,7 +700,7 @@ if ([myClass conformsToProtocol:@protocol(CarUtilities)]) {
// NOTE: If two or more protocols rely on each other, make sure to forward-declare them: // NOTE: If two or more protocols rely on each other, make sure to forward-declare them:
#import "Brother.h" #import "Brother.h"
@protocol Brother; // Forward-declare statement. Without it, compiler would through error. @protocol Brother; // Forward-declare statement. Without it, compiler will throw error.
@protocol Sister <NSObject> @protocol Sister <NSObject>