From 0ede99da420b2d9e91947ad5b3af8fbc0b596e06 Mon Sep 17 00:00:00 2001 From: PTrottier Date: Tue, 1 Sep 2020 23:55:23 -0400 Subject: [PATCH] Make the dialog API comments more consistent (#1005) --- tauri-api/src/dialog.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tauri-api/src/dialog.rs b/tauri-api/src/dialog.rs index 00d5169b4..f9a8311ff 100644 --- a/tauri-api/src/dialog.rs +++ b/tauri-api/src/dialog.rs @@ -23,7 +23,7 @@ fn open_dialog_internal( } } -/// Displays a dialog with a message and an optional title with a "yes" and a "no" button. +/// Displays a dialog with a message and an optional title with a "yes" and a "no" button pub fn ask(message: impl AsRef, title: impl AsRef) -> DialogSelection { DialogBuilder::new() .message(message.as_ref()) @@ -34,7 +34,7 @@ pub fn ask(message: impl AsRef, title: impl AsRef) -> DialogSelection .show() } -/// Displays a message dialog. +/// Displays a message dialog pub fn message(message: impl AsRef, title: impl AsRef) { DialogBuilder::new() .message(message.as_ref()) @@ -52,7 +52,7 @@ pub fn select( open_dialog_internal(DialogType::SingleFile, filter_list, default_path) } -/// Open mulitple select file dialog +/// Open multiple select file dialog pub fn select_multiple( filter_list: Option>, default_path: Option>,