From 76725b2db87814cd61f3ff05cc353db7adfba4cd Mon Sep 17 00:00:00 2001 From: Jonas Kruckenberg Date: Thu, 14 Dec 2023 13:59:28 +0100 Subject: [PATCH] fix typos --- .gitignore | 1 + src/fs.rs | 4 ++-- src/lib.rs | 2 +- typos.toml | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 typos.toml diff --git a/.gitignore b/.gitignore index 2687354..3a1dd31 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ node_modules src/*.mjs .DS_Store +.idea \ No newline at end of file diff --git a/src/fs.rs b/src/fs.rs index 269b532..043647c 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -420,7 +420,7 @@ pub async fn rename_file( /// ```rust,no_run /// use tauri_sys::fs; /// -/// fs::write_binary_file(path, contents, BaseDirectory::Download).expect("could not writet binary file"); +/// fs::write_binary_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); /// ``` /// /// Requires [`allowlist > fs > writeBinaryFile`](https://tauri.app/v1/api/js/fs) to be enabled. @@ -448,7 +448,7 @@ pub async fn write_binary_file( /// ```rust,no_run /// use tauri_sys::fs; /// -/// fs::write_text_file(path, contents, BaseDirectory::Download).expect("could not writet binary file"); +/// fs::write_text_file(path, contents, BaseDirectory::Download).expect("could not writes binary file"); /// ``` /// /// Requires [`allowlist > fs > writeTextFile`](https://tauri.app/v1/api/js/fs) to be enabled. diff --git a/src/lib.rs b/src/lib.rs index 723d494..7383a20 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -78,7 +78,7 @@ //! #### Streams are buffered //! //! Streams, much like iterators, are poll-based meaning the caller is responsible for advancing it. -//! This allows greater flexibilty as you can freely decide *when* to process events. +//! This allows greater flexibility as you can freely decide *when* to process events. //! Event streams are internally backed by an unbounded queue so events are buffered until read, //! so no events are getting lost even if you temporarily pause processing. //! diff --git a/typos.toml b/typos.toml new file mode 100644 index 0000000..aca4be4 --- /dev/null +++ b/typos.toml @@ -0,0 +1,2 @@ +[files] +extend-exclude = ["tauri", "target"] \ No newline at end of file