Skip to content

Commit

Permalink
Merge pull request #23 from xflcx1991/fix-dto-error
Browse files Browse the repository at this point in the history
📃 docs: correct example code
  • Loading branch information
babyfish-ct authored Apr 16, 2024
2 parents 27db65a + f8bd1f3 commit cb373d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/quick-view/fetch/export/dto.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ List<Book> books = bookRepository.findBooksByName(
for (Book book : books) {
System.out.println("--------");
System.out.println("Id: " + book.id());
System.out.println("Name: " + book.id());
System.out.println("Edition: " + book.id());
System.out.println("Name: " + book.name());
System.out.println("Edition: " + book.edition());
System.out.println("Price:" + book.price()); ❷
}
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ List<Book> books = bookRepository.findBooksByName(
for (Book book : books) {
System.out.println("--------");
System.out.println("Id: " + book.id());
System.out.println("Name: " + book.id());
System.out.println("Edition: " + book.id());
System.out.println("Name: " + book.name());
System.out.println("Edition: " + book.edition());
System.out.println("Price:" + book.price()); ❷
}
```
Expand Down

0 comments on commit cb373d2

Please sign in to comment.