Fixing typo.

This commit is contained in:
Maxime Delporte
2025-10-10 20:43:14 +02:00
parent e0931223e4
commit faa27b11d5

View File

@@ -25,7 +25,7 @@ func (app *application) showMovieHandler(w http.ResponseWriter, r *http.Request)
We can then use the ByName() method to get the value of the "id" parameter from We can then use the ByName() method to get the value of the "id" parameter from
the slice. In our project all movies will have a unique positive integer ID, but the slice. In our project all movies will have a unique positive integer ID, but
the value returned by ByName() is always a string. So we try to convert it to a the value returned by ByName() is always a string. So we try to convert it to a
base 1° integer (with a bit size of 64). If the parameter couldn't be converted, base 10 integer (with a bit size of 64). If the parameter couldn't be converted,
or is less than 1, we know the ID is invalid so we use the http.NotFound() or is less than 1, we know the ID is invalid so we use the http.NotFound()
func to return a 404 Not Found Response. func to return a 404 Not Found Response.
*/ */