From 158b169a336e1ff2158056a1d5c7888f8ddad133 Mon Sep 17 00:00:00 2001 From: Shihyu Date: Tue, 15 Feb 2022 16:22:16 +0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2c8333..4cd4d2c 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ PageSupport `PageSupport` 也有提供 Builder 模式的建構方式, 你可以透過 `PageSupport#of` 開始一個 Builder 的建構: -``` +```java PageSupport .of(method::fetchData) .args(1, 2L, "3", Pageable.ofSize(10)) @@ -60,7 +60,7 @@ PageSupport 使用 Builder 模式就可以事先定義 *Page Stream* 的建構方式, 且重複的開出多個 *stream* 物件, 如: ```java -var fetcher = PageSupport.of(method::toInvoke); +var fetcher = PageSupport.of(method::fetchData); fetcher.args(1, 2L, "3", Pageable.ofSize(10)) .stream()