diff --git a/Aspects.h b/Aspects.h index 081dfe6..5508f86 100644 --- a/Aspects.h +++ b/Aspects.h @@ -55,15 +55,15 @@ typedef NS_OPTIONS(NSUInteger, AspectOptions) { /// @note Hooking static methods is not supported. /// @return A token which allows to later deregister the aspect. + (id)aspect_hookSelector:(SEL)selector - withOptions:(AspectOptions)options - usingBlock:(id)block - error:(NSError **)error; + withOptions:(AspectOptions)options + usingBlock:(id)block + error:(NSError **)error; /// Adds a block of code before/instead/after the current `selector` for a specific instance. - (id)aspect_hookSelector:(SEL)selector - withOptions:(AspectOptions)options - usingBlock:(id)block - error:(NSError **)error; + withOptions:(AspectOptions)options + usingBlock:(id)block + error:(NSError **)error; @end diff --git a/Aspects.m b/Aspects.m index a01f8a2..64ef1e8 100644 --- a/Aspects.m +++ b/Aspects.m @@ -217,7 +217,7 @@ static BOOL aspect_isCompatibleBlockSignature(NSMethodSignature *blockSignature, } if (!signaturesMatch) { - NSString *description = [NSString stringWithFormat:@"Blog signature %@ doesn't match %@.", blockSignature, methodSignature]; + NSString *description = [NSString stringWithFormat:@"Block signature %@ doesn't match %@.", blockSignature, methodSignature]; AspectError(AspectErrorIncompatibleBlockSignature, description); return NO; } diff --git a/README.md b/README.md index 4baecc7..0c1800a 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ When to use Aspects Aspect-oriented programming (AOP) is used to encapsulate "cross-cutting" concerns. These are the kind of requirements that *cut-accross* many modules in your system, and so cannot be encapsulated using normal Object Oriented programming. Some examples of these kinds of requirements: * *Whenever* a user invokes a method on the service client, security should be checked. -* *Whenever* a useer interacts with the store, a genius suggestion should be presented, based on their interaction. +* *Whenever* a user interacts with the store, a genius suggestion should be presented, based on their interaction. * *All* calls should be logged. If we implemented the above requirements using regular OO there'd be some drawbacks: