From f1addb3f18d751b8ffd6ccaacab30ad6c33b6406 Mon Sep 17 00:00:00 2001 From: Jacalz Date: Thu, 18 Jun 2020 18:13:02 +0200 Subject: [PATCH] Fix a nasty little spelling error --- internal/file/data.go | 2 +- internal/gui/exercises.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/file/data.go b/internal/file/data.go index b26e92f..b83eac0 100644 --- a/internal/file/data.go +++ b/internal/file/data.go @@ -125,7 +125,7 @@ func ReadData(key *[]byte, username string) (exercises Data, err error) { return exercises, nil } -// Write writes new exercieses to the data file. +// Write writes new exercises to the data file. func (d *Data) Write(key *[]byte, username string) { //Marchal the xml content in to a file variable. file, err := json.Marshal(d) diff --git a/internal/gui/exercises.go b/internal/gui/exercises.go index 6cb7272..ff8f60f 100644 --- a/internal/gui/exercises.go +++ b/internal/gui/exercises.go @@ -20,7 +20,7 @@ func (u *user) exerciseDisplayer(label *widget.Label) { // Handle an empty data file. if len(u.data.Exercise) == 0 { // Start by informing the user that no data is available. - label.SetText("No exercieses have been created yet.") + label.SetText("No exercises have been created yet.") } else { // Refresh the widget to show the updated text. label.SetText(u.initialDisplay()) @@ -36,7 +36,7 @@ func (u *user) exerciseDisplayer(label *widget.Label) { case <-u.reorderExercises: label.SetText(u.initialDisplay()) case <-u.emptyExercises: - label.SetText("No exercieses have been created yet.") + label.SetText("No exercises have been created yet.") } }