From f68ee13d86672c1ff6dfc68092435fc258b5b51f Mon Sep 17 00:00:00 2001 From: EwenQuim Date: Thu, 21 Mar 2024 22:16:59 +0100 Subject: [PATCH] docs: fixed typo in docs --- documentation/docs/tutorials/crud.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/documentation/docs/tutorials/crud.md b/documentation/docs/tutorials/crud.md index 4f8ac7ff..409dc860 100644 --- a/documentation/docs/tutorials/crud.md +++ b/documentation/docs/tutorials/crud.md @@ -84,27 +84,27 @@ type BookToCreate struct { Title string `json:"title"` } -func getBooks(c fuego.ContextNoBody) ([]Book, error) { +func getBooks(c *fuego.ContextNoBody) ([]Book, error) { // Your code here return nil, nil } -func createBook(c fuego.ContextWithBody[BookToCreate]) (Book, error) { +func createBook(c *fuego.ContextWithBody[BookToCreate]) (Book, error) { // Your code here return Book{}, nil } -func getBook(c fuego.ContextNoBody) (Book, error) { +func getBook(c *fuego.ContextNoBody) (Book, error) { // Your code here return Book{}, nil } -func updateBook(c fuego.ContextWithBody[Book]) (Book, error) { +func updateBook(c *fuego.ContextWithBody[Book]) (Book, error) { // Your code here return Book{}, nil } -func deleteBook(c fuego.ContextNoBody) error { +func deleteBook(c *fuego.ContextNoBody) error { // Your code here return nil }