aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src
diff options
context:
space:
mode:
authorKian-Meng Ang <kianmeng.ang@gmail.com>2022-06-10 22:37:55 +0800
committerGitHub <noreply@github.com>2022-06-10 23:37:55 +0900
commit16b53aa52f73e5ee7383889dc7a422d27be22ef0 (patch)
tree4f7bded9ba5334fc97786ec13d2a5baebbd91503 /zellij-utils/src
parentadd(ci/makefile): run clippy on all features (#1479) (diff)
downloadsl0ppij-16b53aa52f73e5ee7383889dc7a422d27be22ef0.tar.gz
sl0ppij-16b53aa52f73e5ee7383889dc7a422d27be22ef0.tar.xz
sl0ppij-16b53aa52f73e5ee7383889dc7a422d27be22ef0.zip
docs: fix typos (#1481)
Diffstat (limited to 'zellij-utils/src')
-rw-r--r--zellij-utils/src/envs.rs2
-rw-r--r--zellij-utils/src/input/actions.rs2
-rw-r--r--zellij-utils/src/input/layout.rs2
-rw-r--r--zellij-utils/src/input/options.rs4
-rw-r--r--zellij-utils/src/input/plugins.rs4
5 files changed, 7 insertions, 7 deletions
diff --git a/zellij-utils/src/envs.rs b/zellij-utils/src/envs.rs
index 5bb2b80e..84af4480 100644
--- a/zellij-utils/src/envs.rs
+++ b/zellij-utils/src/envs.rs
@@ -36,7 +36,7 @@ pub struct EnvironmentVariablesFromYaml {
}
impl EnvironmentVariablesFromYaml {
- /// Merges two structs, keys from `other` supercede keys from `self`
+ /// Merges two structs, keys from `other` supersede keys from `self`
pub fn merge(&self, other: Self) -> Self {
let mut env = self.clone();
env.env.extend(other.env);
diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs
index 99852b48..3c863f8b 100644
--- a/zellij-utils/src/input/actions.rs
+++ b/zellij-utils/src/input/actions.rs
@@ -104,7 +104,7 @@ pub enum Action {
GoToTab(u32),
ToggleTab,
TabNameInput(Vec<u8>),
- /// Run speficied command in new pane.
+ /// Run specified command in new pane.
Run(RunCommandAction),
/// Detach session and exit
Detach,
diff --git a/zellij-utils/src/input/layout.rs b/zellij-utils/src/input/layout.rs
index 648f09ac..4c113125 100644
--- a/zellij-utils/src/input/layout.rs
+++ b/zellij-utils/src/input/layout.rs
@@ -453,7 +453,7 @@ pub struct LayoutTemplate {
}
impl LayoutTemplate {
- // Insert an optional `[TabLayout]` at the correct postion
+ // Insert an optional `[TabLayout]` at the correct position
pub fn insert_tab_layout(mut self, tab_layout: Option<TabLayout>) -> Self {
if self.body {
return tab_layout.unwrap_or_default().into();
diff --git a/zellij-utils/src/input/options.rs b/zellij-utils/src/input/options.rs
index 22dc0a55..73e77ecb 100644
--- a/zellij-utils/src/input/options.rs
+++ b/zellij-utils/src/input/options.rs
@@ -122,7 +122,7 @@ impl Options {
}
/// Merges two [`Options`] structs, a `Some` in `other`
- /// will supercede a `Some` in `self`
+ /// will supersede a `Some` in `self`
// TODO: Maybe a good candidate for a macro?
pub fn merge(&self, other: Options) -> Options {
let mouse_mode = other.mouse_mode.or(self.mouse_mode);
@@ -163,7 +163,7 @@ impl Options {
}
/// Merges two [`Options`] structs,
- /// - `Some` in `other` will supercede a `Some` in `self`
+ /// - `Some` in `other` will supersede a `Some` in `self`
/// - `Some(bool)` in `other` will toggle a `Some(bool)` in `self`
// TODO: Maybe a good candidate for a macro?
pub fn merge_from_cli(&self, other: Options) -> Options {
diff --git a/zellij-utils/src/input/plugins.rs b/zellij-utils/src/input/plugins.rs
index 0f11e8f4..5d169849 100644
--- a/zellij-utils/src/input/plugins.rs
+++ b/zellij-utils/src/input/plugins.rs
@@ -124,7 +124,7 @@ pub struct PluginConfig {
impl PluginConfig {
/// Resolve wasm plugin bytes for the plugin path and given plugin directory. Attempts to first
/// resolve the plugin path as an absolute path, then adds a ".wasm" extension to the path and
- /// resolves that, finally we use the plugin directoy joined with the path with an appended
+ /// resolves that, finally we use the plugin directory joined with the path with an appended
/// ".wasm" extension. So if our path is "tab-bar" and the given plugin dir is
/// "/home/bob/.zellij/plugins" the lookup chain will be this:
///
@@ -156,7 +156,7 @@ impl PluginConfig {
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "kebab-case")]
pub enum PluginType {
- // TODO: A plugin with output thats cloned across every pane in a tab, or across the entire
+ // TODO: A plugin with output that's cloned across every pane in a tab, or across the entire
// application might be useful
// Tab
// Static