Skip to content

Commit

Permalink
Merge pull request steipete#22 from ryanworl/master
Browse files Browse the repository at this point in the history
Fixed typos in README and Aspects.m
  • Loading branch information
orta committed May 28, 2014
2 parents eea5dc4 + 0d66bf6 commit 686610e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions Aspects.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<AspectToken>)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<AspectToken>)aspect_hookSelector:(SEL)selector
withOptions:(AspectOptions)options
usingBlock:(id)block
error:(NSError **)error;
withOptions:(AspectOptions)options
usingBlock:(id)block
error:(NSError **)error;

@end

Expand Down
2 changes: 1 addition & 1 deletion Aspects.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 686610e

Please sign in to comment.