Correct last commit.

This commit is contained in:
Tom Wilkie
2016-02-04 15:38:09 +00:00
parent 7732be6356
commit 954b023392
2 changed files with 4 additions and 4 deletions

2
lint
View File

@@ -35,7 +35,7 @@ function spell_check {
filename="$1"
local lint_result=0
if grep -iH --color=always psueod availible "${filename}"; then
if grep -iH --color=always 'psueod\|availible' "${filename}"; then
echo "${filename}: spelling mistake"
lint_result=1
fi

View File

@@ -63,10 +63,10 @@ func (ts tests) Less(i, j int) bool {
return ts[i].name < ts[j].name
}
func (ts *tests) pick(availible int) (test, bool) {
// pick the first test that fits in the availible hosts
func (ts *tests) pick(available int) (test, bool) {
// pick the first test that fits in the available hosts
for i, test := range *ts {
if test.hosts <= availible {
if test.hosts <= available {
*ts = append((*ts)[:i], (*ts)[i+1:]...)
return test, true
}