Skip to content

Commit

Permalink
chore: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
j178 committed Feb 20, 2023
1 parent 1971b91 commit 5734417
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 59 deletions.
2 changes: 1 addition & 1 deletion leetcode/question.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ func (q *QuestionData) GetFormattedFilename(lang string, filenameTemplate string
"upper": strings.ToUpper,
"trim": strings.TrimSpace,
"padWithZero": func(n int, s string) string {
return fmt.Sprintf("%0"+strconv.Itoa(n)+"s", s)
return fmt.Sprintf("%0*s", n, s)
},
"toUnderscore": func(s string) string {
return strings.ReplaceAll(s, "-", "_")
Expand Down
Binary file removed misc/demo.gif
Binary file not shown.
58 changes: 0 additions & 58 deletions misc/demo.tape

This file was deleted.

0 comments on commit 5734417

Please sign in to comment.