From c9e20dd907ce1c2fb7f374b990a7ed030c2505d6 Mon Sep 17 00:00:00 2001 From: Jordan Danford Date: Wed, 24 May 2017 09:40:53 -0700 Subject: [PATCH] Change 'neccessary' to 'necessary' License: MIT Signed-off-by: Jordan Danford --- bin/check_version | 4 ++-- core/commands/config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/check_version b/bin/check_version index 401471c31..6309238db 100755 --- a/bin/check_version +++ b/bin/check_version @@ -35,7 +35,7 @@ check_at_least_version() { # if the second dot doesn't match, we consider it a prerelease if MIN_MIN=$(expr "$MIN_VERS" : "[^.]*\.\([0-9]\+\)"); then - # this captured digit is neccessary, since expr returns code 1 if the output is empty + # this captured digit is necessary, since expr returns code 1 if the output is empty if expr "$MIN_VERS" : "[^.]*\.[0-9]*\([0-9]\.\|[0-9]\$\)" >/dev/null; then MIN_PRERELEASE="0" else @@ -48,7 +48,7 @@ check_at_least_version() { MIN_FIX="0" fi if CUR_MIN=$(expr "$CUR_VERS" : "[^.]*\.\([0-9]\+\)"); then - # this captured digit is neccessary, since expr returns code 1 if the output is empty + # this captured digit is necessary, since expr returns code 1 if the output is empty if expr "$CUR_VERS" : "[^.]*\.[0-9]*\([0-9]\.\|[0-9]\$\)" >/dev/null; then CUR_PRERELEASE="0" else diff --git a/core/commands/config.go b/core/commands/config.go index 61d372f55..0609f2d7a 100644 --- a/core/commands/config.go +++ b/core/commands/config.go @@ -247,7 +247,7 @@ var configReplaceCmd = &cmds.Command{ Helptext: cmds.HelpText{ Tagline: "Replace the config with .", ShortDescription: ` -Make sure to back up the config file first if neccessary, as this operation +Make sure to back up the config file first if necessary, as this operation can't be undone. `, },