Skip to content

Commit 864e0b9

Browse files
committed
Fix typos
1 parent 117bff1 commit 864e0b9

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

commands/copy.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func CopyAction(context *cli.Context) error {
6565
var CopyCommand = cli.Command{
6666
Name: "copy",
6767
Aliases: []string{"cp"},
68-
Usage: "copy task file into clipboad",
69-
UsageText: "list meta data about of the tests cases in the current task",
68+
Usage: "Copy task file into clipboard",
69+
UsageText: "Copy task file into clipboard",
7070
Action: CopyAction,
7171
}

commands/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ func ParseAction(_ *cli.Context) error {
185185
var ParseCommand = cli.Command{
186186
Name: "parse",
187187
Aliases: []string{"p"},
188-
Usage: "parse task from navigator",
188+
Usage: "Parse task from navigator",
189189
UsageText: "egor parse",
190190
Action: ParseAction,
191191
}

commands/printcase.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ func PrintCaseAction(context *cli.Context) error {
135135
var PrintCaseCommand = cli.Command{
136136
Name: "printcase",
137137
Aliases: []string{"pc"},
138-
Usage: "print input and/or output of a given test case",
139-
UsageText: "print input and/or output of a given test case",
138+
Usage: "Print input and/or output of a given test case",
139+
UsageText: "Print input and/or output of a given test case",
140140
Action: PrintCaseAction,
141141
Flags: []cli.Flag{
142142
&cli.BoolFlag{

commands/showcases.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ func ShowCasesAction(_ *cli.Context) error {
101101
var ShowCasesCommand = cli.Command{
102102
Name: "showcases",
103103
Aliases: []string{"sc"},
104-
Usage: "list meta data about of the tests cases in the current task",
104+
Usage: "list meta data about tests cases in the current task",
105105
UsageText: "egor showcases",
106106
Action: ShowCasesAction,
107107
}

templates/resolver.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const CppTemplate = `
1616
#include <set>
1717
#include <map>
1818
#include <algorithm>
19-
#include <math>
19+
#include <cmath>
2020
2121
using namespace std;
2222
@@ -32,7 +32,7 @@ import java.io.*;
3232
* Made by egor https://github.com/chermehdi/egor.
3333
* {{if .Author }}
3434
* @author {{ .Author }}
35-
{{end}}
35+
* {{end}}
3636
*/
3737
public class Main {
3838
@@ -52,9 +52,9 @@ public class Main {
5252
const PythonTemplate = `
5353
#
5454
# Created by egor https://github.com/chermehdi/egor
55-
{{if .Author }}
55+
# {{if .Author }}
5656
# @author {{ .Author }}
57-
{{end}}
57+
# {{end}}
5858
`
5959

6060
func ResolveTemplateByLanguage(lang string) (string, error) {

0 commit comments

Comments
 (0)