mirror of
https://github.com/Nanaloveyuki/BitLogger.git
synced 2026-05-30 15:42:25 +00:00
📝 Align API docs with updated interface template
This commit is contained in:
@@ -30,24 +30,6 @@ pub fn[S] Logger::with_filter(self : Logger[S], predicate : (Record) -> Bool) ->
|
||||
|
||||
- `Logger[FilterSink[S]]` - A new logger that only forwards matching records.
|
||||
|
||||
---
|
||||
|
||||
e.g.:
|
||||
```moonbit
|
||||
pub fn[S] Logger::with_filter(self : Logger[S], predicate : (Record) -> Bool) -> Logger[FilterSink[S]] {}
|
||||
```
|
||||
|
||||
#### input
|
||||
|
||||
- `self : Logger[S]` - Logger to filter.
|
||||
- `predicate : (Record) -> Bool` - Acceptance rule.
|
||||
|
||||
#### output
|
||||
|
||||
- `Logger[FilterSink[S]]` - Logger with predicate filtering.
|
||||
|
||||
---
|
||||
|
||||
### Explanation
|
||||
|
||||
Detailed rules explaining key parameters and behaviors
|
||||
|
||||
Reference in New Issue
Block a user