The second image is the one without curly braces, and it marks that area with a red line. The first image has curly braces inserted in it, and the line disappeared. Why was there a need to add curly braces?


I tried without the curly braces as shown in the tutorial, but it showed error.
Источник: https://stackoverflow.com/questions/780 ... equired-in