From dfe2ae643af77b882ae1cfbe81fa74d62250eb93 Mon Sep 17 00:00:00 2001 From: Saghm Rossi Date: Sat, 17 Aug 2019 23:50:42 -0400 Subject: [PATCH] fix a few typos (#178) --- docs/config/README.md | 2 +- src/context.rs | 2 +- src/modules/username.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/config/README.md b/docs/config/README.md index d31a010f..3c074dbf 100644 --- a/docs/config/README.md +++ b/docs/config/README.md @@ -268,7 +268,7 @@ more than the `threshold` config value, if it exists. | Variable | Default | Description | | ----------- | ------- | -------------------------------- | -| `threshold` | `1` | Show number of jobs if execeded. | +| `threshold` | `1` | Show number of jobs if exceeded. | | `disabled` | `false` | Disables the `jobs` module. | ### Example diff --git a/src/context.rs b/src/context.rs index 1cfbaa3a..3a663da4 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 59b5a3bd..cda22365 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`)