Skip to content

Commit 86c1ec7

Browse files
Update ch04-logtar-our-logging-library.md
`with_time_threshold` and `with_time_threshold` updated to reflect the `assert` methods of `RollingTimeOptions` and `RollingSizeOptions`
1 parent 0f4bf20 commit 86c1ec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapters/ch04-logtar-our-logging-library.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,14 +758,14 @@ class RollingConfig {
758758
// If yes, set the size, and return the current instance of the class.
759759
// If it's not valid, throw an error.
760760
with_size_threshold(size_threshold) {
761-
RollingTimeOptions.assert_size(size_threshold);
761+
RollingSizeOptions.assert(size_threshold);
762762
this.#size_threshold = size_threshold;
763763
return this;
764764
}
765765

766766
// Same like above, but with `time`.
767767
with_time_threshold(time_threshold) {
768-
RollingTimeOptions.assert_time(time_threshold);
768+
RollingTimeOptions.assert(time_threshold);
769769
this.#time_threshold = time_threshold;
770770
return this;
771771
}

0 commit comments

Comments
 (0)