Skip to content

Commit cbceb7d

Browse files
yutotnhlucasfernog
andauthored
fix: some typos (#4403)
Co-authored-by: Lucas Nogueira <lucas@tauri.studio>
1 parent 6d94ce4 commit cbceb7d

File tree

12 files changed

+23
-18
lines changed

12 files changed

+23
-18
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fixes the error message when using the `window.unminimize` API without enabling it in the allowlist.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ If you are interested in making a tauri app, please visit the [documentation web
4242

4343
### App Bundles
4444
- [x] App Icons
45-
- [x] Build on MacOS (.app, .dmg)
45+
- [x] Build on macOS (.app, .dmg)
4646
- [x] Build on Linux (.deb, AppImage)
4747
- [x] Build on Windows (.exe, .msi)
4848
- [x] Copy Buffer
@@ -88,7 +88,7 @@ If you are interested in making a tauri app, please visit the [documentation web
8888
| Auto Updater | Yes | Yes<sup>1</sup> |
8989
| Custom App Icon | Yes | Yes |
9090
| Windows Binary | Yes | Yes |
91-
| MacOS Binary | Yes | Yes |
91+
| macOS Binary | Yes | Yes |
9292
| Linux Binary | Yes | Yes |
9393
| iOS Binary | Soon | No |
9494
| Android Binary | Soon | No |
@@ -108,15 +108,15 @@ Tauri is a system composed of a number of moving pieces:
108108
- GitHub actions for CI and CD
109109
- Discord for discussions
110110
- Netlify-hosted documentation website
111-
- DigitalOcean meilisearch instance
111+
- DigitalOcean Meilisearch instance
112112

113113
### Major Runtimes
114114
- Node.js for running the CLI (deno and pure rust are on the roadmap)
115115
- Cargo for testing, running the dev service, building binaries and as the runtime harness for the webview
116116

117117
### Major Languages
118118
- Rust for the CLI
119-
- EcmaScript bindings to the Rust API, written in typescript
119+
- ECMAScript bindings to the Rust API, written in typescript
120120
- Rust for bindings, rust side of the API, harnesses
121121
- Rust plugins to Tauri backend
122122

core/tauri-build/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl WindowsAttributes {
118118
self
119119
}
120120

121-
/// Sets the sdk dir for windows. Currently only used on Windows. This must be a vaild UTF-8
121+
/// Sets the sdk dir for windows. Currently only used on Windows. This must be a valid UTF-8
122122
/// path. Defaults to whatever the `winres` crate determines is best.
123123
#[must_use]
124124
pub fn sdk_dir<P: AsRef<Path>>(mut self, sdk_dir: P) -> Self {

core/tauri-runtime-wry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,7 @@ impl<T: UserEvent> Dispatch<T> for WryDispatcher<T> {
12971297
window_getter!(self, WindowMessage::Theme)
12981298
}
12991299

1300-
/// Returns the `ApplicatonWindow` from gtk crate that is used by this window.
1300+
/// Returns the `ApplicationWindow` from gtk crate that is used by this window.
13011301
#[cfg(any(
13021302
target_os = "linux",
13031303
target_os = "dragonfly",

core/tauri-runtime/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ pub trait Dispatch<T: UserEvent>: Debug + Clone + Send + Sync + Sized + 'static
357357
/// The runtime this [`Dispatch`] runs under.
358358
type Runtime: Runtime<T>;
359359

360-
/// The winoow builder type.
360+
/// The window builder type.
361361
type WindowBuilder: WindowBuilder;
362362

363363
/// Run a task on the main thread.
@@ -414,7 +414,7 @@ pub trait Dispatch<T: UserEvent>: Debug + Clone + Send + Sync + Sized + 'static
414414
/// Gets the window’s current resizable state.
415415
fn is_resizable(&self) -> Result<bool>;
416416

417-
/// Gets the window's current vibility state.
417+
/// Gets the window's current visibility state.
418418
fn is_visible(&self) -> Result<bool>;
419419

420420
/// Gets the window menu current visibility state.
@@ -441,7 +441,7 @@ pub trait Dispatch<T: UserEvent>: Debug + Clone + Send + Sync + Sized + 'static
441441
#[cfg(target_os = "macos")]
442442
fn ns_window(&self) -> Result<*mut std::ffi::c_void>;
443443

444-
/// Returns the `ApplicatonWindow` from gtk crate that is used by this window.
444+
/// Returns the `ApplicationWindow` from gtk crate that is used by this window.
445445
#[cfg(any(
446446
target_os = "linux",
447447
target_os = "dragonfly",

core/tauri/src/api/ipc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ mod test {
279279
assert_eq!(escape_single_quoted_json_test, result);
280280
}
281281

282-
// check abritrary strings in the format callback function
282+
// check arbitrary strings in the format callback function
283283
#[quickcheck]
284284
fn qc_formating(f: CallbackFn, a: String) -> bool {
285285
// call format callback

core/tauri/src/async_runtime.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! Tauri uses [`tokio`] Runtime to initialize code, such as
88
//! [`Plugin::initialize`](../plugin/trait.Plugin.html#method.initialize) and [`crate::Builder::setup`] hooks.
99
//! This module also re-export some common items most developers need from [`tokio`]. If there's
10-
//! one you need isn't here, you could use types in [`tokio`] dierectly.
10+
//! one you need isn't here, you could use types in [`tokio`] directly.
1111
//! For custom command handlers, it's recommended to use a plain `async fn` command.
1212
1313
use futures_lite::future::FutureExt;
@@ -215,7 +215,7 @@ fn default_runtime() -> GlobalRuntime {
215215
}
216216

217217
/// Sets the runtime to use to execute asynchronous tasks.
218-
/// For convinience, this method takes a [`TokioHandle`].
218+
/// For convenience, this method takes a [`TokioHandle`].
219219
/// Note that you cannot drop the underlying [`TokioRuntime`].
220220
///
221221
/// # Examples

core/tauri/src/endpoints/window.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ pub fn into_allowlist_error(variant: &str) -> crate::Error {
154154
crate::Error::ApiNotAllowlisted("window > maximize and window > unmaximize".to_string())
155155
}
156156
"minimize" => crate::Error::ApiNotAllowlisted("window > minimize".to_string()),
157-
"nnminimize" => crate::Error::ApiNotAllowlisted("window > unminimize".to_string()),
157+
"unminimize" => crate::Error::ApiNotAllowlisted("window > unminimize".to_string()),
158158
"show" => crate::Error::ApiNotAllowlisted("window > show".to_string()),
159159
"hide" => crate::Error::ApiNotAllowlisted("window > hide".to_string()),
160160
"close" => crate::Error::ApiNotAllowlisted("window > close".to_string()),

core/tauri/src/updater/core.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,10 @@ impl<R: Runtime> UpdateBuilder<R> {
364364
// replace {{current_version}}, {{target}} and {{arch}} in the provided URL
365365
// this is usefull if we need to query example
366366
// https://releases.myapp.com/update/{{target}}/{{arch}}/{{current_version}}
367-
// will be transleted into ->
367+
// will be translated into ->
368368
// https://releases.myapp.com/update/darwin/aarch64/1.0.0
369369
// The main objective is if the update URL is defined via the Cargo.toml
370-
// the URL will be generated dynamicly
370+
// the URL will be generated dynamically
371371
let fixed_link = url
372372
.replace("{{current_version}}", &self.current_version.to_string())
373373
.replace("{{target}}", &target)

tooling/bundler/src/bundle/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::{
1313
sync::{Arc, Mutex},
1414
};
1515

16-
/// Returns true if the path has a filename indicating that it is a high-desity
16+
/// Returns true if the path has a filename indicating that it is a high-density
1717
/// "retina" icon. Specifically, returns true the the file stem ends with
1818
/// "@2x" (a convention specified by the [Apple developer docs](
1919
/// https://developer.apple.com/library/mac/documentation/GraphicsAnimation/Conceptual/HighResolutionOSX/Optimizing/Optimizing.html)).

0 commit comments

Comments
 (0)