Retirement tax questions

I read on turbotax before the following which is why I am confused:

 

"If you made the contribution to your Roth IRA in 2024 (between January 1, 2024 and the 2023 filing deadline without extensions) but you designated it as a 2023 contribution and you withdrew it in 2024, the Form 1099-R you get will be for 2024. Include the Form 1099-R on your 2024 return. Your Form 1099-R will have code 8 and a code J in box 7."