diff --git a/README.md b/README.md index 6451b44..cb331b2 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ STOMPClient *client = [[STOMPClient alloc] initWithHost:@"localhost" [client connectWithLogin:@"mylogin" passcode:@"mypassword" completionHandler:^(STOMPFrame *_, NSError *error) { - if (err) { + if (error) { NSLog(@"%@", error); return; } @@ -66,7 +66,7 @@ STOMPClient *client = [[STOMPClient alloc] initWithHost:@"localhost" [client connectWithLogin:@"mylogin" passcode:@"mypassword" completionHandler:^(STOMPFrame *_, NSError *error) { - if (err) { + if (error) { NSLog(@"%@", error); return; }