Builder configuration initialization requires text.

This commit is contained in:
Erik C. Thauvin 2024-05-17 02:05:09 -07:00
parent 258b8126bb
commit 9088716047
Signed by: erik
GPG key ID: 776702A6A2DA330E
9 changed files with 90 additions and 28 deletions

View file

@ -116,7 +116,7 @@ None of the attributes are required.
In addition to setters, a configuration builder is also available:
```java
final ReadingTime rt = new ReadingTime(Files.readString(text));
final ReadingTime rt = new ReadingTime(text);
rt.setPostfix("minute to read");
rt.setPlural("minutes to read");
```
@ -125,8 +125,7 @@ or
```java
final Config config =
new Config.Builder()
.text(Files.readString(text))
new Config.Builder(text)
.postfix("minute to read")
.plural("minutes to read")
.build();