I'm having hesitation about closing question:
On one hand, even the OP don't know if there is any problem about the code. On the other hand, this question seems doesn't belong to the case like Are questions about checking correctness of code on topic?, because this time the code is much shorter, and the root cause is simple, which is already a narrowed scope in stead of a broad question.
My question is, is this kind of questions need to close? If so, what is the close reason?