diff --git a/objectivec/GPBWellKnownTypes.m b/objectivec/GPBWellKnownTypes.m index b48f8a53bd..8cd6f754ea 100644 --- a/objectivec/GPBWellKnownTypes.m +++ b/objectivec/GPBWellKnownTypes.m @@ -153,7 +153,7 @@ NSString *const GPBTypeGoogleApisComPrefix = @"type.googleapis.com/"; } - (BOOL)wrapsMessageOfClass:(Class)messageClass { - NSAssert([messageClass isSubclassofClass:[GPBMessage class]], + NSAssert([messageClass isSubclassOfClass:[GPBMessage class]], @"Given class (%@) is not a subclass of GPBMessage", [messageClass name]); if (![messageClass isSubclassOfClass:[GPBMessage class]]) {