Function given at example 1 has not limit at x=1 and nor is continuous at that point.