summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSaghm Rossi <saghmrossi@gmail.com>2019-08-17 23:50:42 -0400
committerKevin Song <chipbuster@users.noreply.github.com>2019-08-17 20:50:42 -0700
commitdfe2ae643af77b882ae1cfbe81fa74d62250eb93 (patch)
treed25d6bf834a418669b967b84b1d3f53260f1e543 /src
parent8782e300fc991895f66dae56019b6cbaff065b3d (diff)
fix a few typos (#178)
Diffstat (limited to 'src')
-rw-r--r--src/context.rs2
-rw-r--r--src/modules/username.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/context.rs b/src/context.rs
index 1cfbaa3af..3a663da42 100644
--- a/src/context.rs
+++ b/src/context.rs
@@ -37,7 +37,7 @@ impl<'a> Context<'a> {
/// Identify the current working directory and create an instance of Context
/// for it.
pub fn new(arguments: ArgMatches) -> Context {
- // Retreive the "path" flag. If unavailable, use the current directory instead.
+ // Retrieve the "path" flag. If unavailable, use the current directory instead.
let path = arguments
.value_of("path")
.map(From::from)
diff --git a/src/modules/username.rs b/src/modules/username.rs
index 59b5a3bda..cda223652 100644
--- a/src/modules/username.rs
+++ b/src/modules/username.rs
@@ -6,7 +6,7 @@ use super::{Context, Module};
/// Creates a module with the current user's username
///
-/// Will display the usename if any of the following criteria are met:
+/// Will display the username if any of the following criteria are met:
/// - The current user isn't the same as the one that is logged in (`$LOGNAME` != `$USER`)
/// - The current user is root (UID = 0)
/// - The user is currently connected as an SSH session (`$SSH_CONNECTION`)