Make the dialog API comments more consistent (#1005)

This commit is contained in:
PTrottier 2020-09-01 23:55:23 -04:00 committed by GitHub
parent 7a788fdcee
commit 0ede99da42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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<str>, title: impl AsRef<str>) -> DialogSelection {
DialogBuilder::new()
.message(message.as_ref())
@ -34,7 +34,7 @@ pub fn ask(message: impl AsRef<str>, title: impl AsRef<str>) -> DialogSelection
.show()
}
/// Displays a message dialog.
/// Displays a message dialog
pub fn message(message: impl AsRef<str>, title: impl AsRef<str>) {
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<impl AsRef<str>>,
default_path: Option<impl AsRef<Path>>,