Continuity requires the approaching values and the actual value to agree.
This function equals x² except possibly at x=1. Its two-sided limit there is 1, independent of the assigned value. It is continuous at 1 exactly when the filled point is placed at height 1. This is a removable discontinuity when the heights disagree.
Having a function value does not guarantee continuity.