Skip to content

Commit

Permalink
docs: fixed typo in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Mar 21, 2024
1 parent 11df301 commit f68ee13
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions documentation/docs/tutorials/crud.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f68ee13

Please sign in to comment.