diff options
author | Kian-Meng Ang <kianmeng@cpan.org> | 2022-07-24 23:05:42 +0800 |
---|---|---|
committer | Kian-Meng Ang <kianmeng@cpan.org> | 2022-07-24 23:05:42 +0800 |
commit | 41aee68a4d974b077408756127741b34b0b67ee8 (patch) | |
tree | 84c3f839ccbb55d9b9b1883153de35ef0ab4c7e5 /src/app | |
parent | e8a5f7687ac9efd30d549ce2dd1b83e452506215 (diff) |
fix typos
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/app.rs | 2 | ||||
-rw-r--r-- | src/app/app_context.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/app/app.rs b/src/app/app.rs index 17ae9bc..6f7ce1f 100644 --- a/src/app/app.rs +++ b/src/app/app.rs @@ -120,7 +120,7 @@ impl App { } } - /// return the current index of the panel whith given id + /// return the current index of the panel with given id fn panel_id_to_idx(&self, id: PanelId) -> Option<usize> { self.panels.iter().position(|panel| panel.id == id) } diff --git a/src/app/app_context.rs b/src/app/app_context.rs index 3b7418b..7bf0445 100644 --- a/src/app/app_context.rs +++ b/src/app/app_context.rs @@ -63,7 +63,7 @@ pub struct AppContext { pub true_colors: bool, /// map extensions to icons, icon set chosen based on config - /// Send, Sync safely beause once created, everything is immutable + /// Send, Sync safely because once created, everything is immutable pub icons: Option<Box<dyn IconPlugin + Send + Sync>>, /// modal (aka "vim) mode enabled @@ -134,7 +134,7 @@ impl AppContext { let initial_root = get_root_path(&launch_args)?; // tree options are built from the default_flags - // found in the config file(s) (if any) then overriden + // found in the config file(s) (if any) then overridden // by the cli args let mut initial_tree_options = TreeOptions::default(); initial_tree_options.apply_config(config)?; |