Skip to content

Commit

Permalink
Merge pull request #1 from hrysd/typo
Browse files Browse the repository at this point in the history
Fix typo
  • Loading branch information
takkanm committed Mar 20, 2015
2 parents 7a82887 + a17423b commit 355bb1c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"os"
)

func writeGifFile(outFileNmae string, g gif.GIF) {
outFile, _ := os.Create(outFileNmae)
func writeGifFile(outFileName string, g gif.GIF) {
outFile, _ := os.Create(outFileName)
defer outFile.Close()

g.Delay = make([]int, len(g.Image))
Expand Down Expand Up @@ -39,8 +39,8 @@ func calsSlideVolume() (int, int) {
return x, y
}

func generateAnimeGif(inFileNmae string) {
inFile, _ := os.Open(inFileNmae)
func generateAnimeGif(inFileName string) {
inFile, _ := os.Open(inFileName)
defer inFile.Close()

pngImage, _ := png.Decode(inFile)
Expand All @@ -59,7 +59,7 @@ func generateAnimeGif(inFileNmae string) {
outGif.Image = append(outGif.Image, palet)
}

writeGifFile(inFileNmae+".gif", outGif)
writeGifFile(inFileName+".gif", outGif)
}

func main() {
Expand Down

0 comments on commit 355bb1c

Please sign in to comment.