Skip to content

Commit 6d7769f

Browse files
Legend-Mastergezihuzi
authored andcommitted
docs: fix log targets docs (tauri-apps#2602)
* docs: fix log targets docs * replace(s)
1 parent 8463bf3 commit 6d7769f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugins/log/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,11 @@ impl Builder {
398398
self
399399
}
400400

401-
/// Adds a collection of targets to the logger.
401+
/// Replaces the targets of the logger.
402402
///
403403
/// ```rust
404404
/// use tauri_plugin_log::{Target, TargetKind, WEBVIEW_TARGET};
405405
/// tauri_plugin_log::Builder::new()
406-
/// .clear_targets()
407406
/// .targets([
408407
/// Target::new(TargetKind::Webview),
409408
/// Target::new(TargetKind::LogDir { file_name: Some("webview".into()) }).filter(|metadata| metadata.target().starts_with(WEBVIEW_TARGET)),

0 commit comments

Comments
 (0)