Fix code example that was missing self.