From faa27b11d59de3a227859406db8cc16935972e3f Mon Sep 17 00:00:00 2001 From: Maxime Delporte Date: Fri, 10 Oct 2025 20:43:14 +0200 Subject: [PATCH] Fixing typo. --- cmd/api/movies.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/api/movies.go b/cmd/api/movies.go index a06beda..95e9a9f 100644 --- a/cmd/api/movies.go +++ b/cmd/api/movies.go @@ -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 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 - 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() func to return a 404 Not Found Response. */