Error Handling with the Result Type
Check the warnings in the terminal output. What does it say about the Result Type in fn display_rectangle()
?
-
Check the
sdl2
documentation for the return value of thefill_rect()
method. Research in thestd
documentation how to use this value. -
Change the code.
Find the solution on the next page.