Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
matsuyoshi30 committed Oct 19, 2021
1 parent 27fd324 commit 0ed1088
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func main() {
return
}

blured := song2.GaussianBlur(img, 3.0)
blurred := song2.GaussianBlur(img, 3.0)

out, err := os.Create("./output.png")
if err != nil {
Expand All @@ -52,7 +52,7 @@ func main() {
}
defer out.Close()

if err := png.Encode(out, blured); err != nil {
if err := png.Encode(out, blurred); err != nil {
fmt.Println(err)
return
}
Expand All @@ -75,7 +75,7 @@ Usage:
song2 [FLAGS] [FILE]

FLAGS:
-o Write output image to specifig filepath [default: blured.png]
-o Write output image to specifig filepath [default: blurred.png]
-r Radius [default: 3.0]

Author:
Expand All @@ -85,11 +85,11 @@ Author:

## Example

`song2 -o assets/blured.png assets/sample.png`
`song2 -o assets/blurred.png assets/sample.png`

| Original | Blured |
| ------------------------------ | ---------------------------- |
| ![original](assets/sample.png) | ![blured](assets/blured.png) |
| ![original](assets/sample.png) | ![blurred](assets/blurred.png) |

This image is from http://sipi.usc.edu/database/database.php?volume=misc&image=10#top

Expand Down
File renamed without changes
8 changes: 4 additions & 4 deletions cmd/song2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

var (
output = flag.String("o", "blured.png", "Write output image to specific filepath")
output = flag.String("o", "blurred.png", "Write output image to specific filepath")
radius = flag.Float64("r", 3.0, "Radius")

name = "song2"
Expand All @@ -29,7 +29,7 @@ func main() {
%s [FLAGS] [FILE]
FLAGS:
-o Write output image to specifig filepath [default: blured.png]
-o Write output image to specifig filepath [default: blurred.png]
-r Radius [default: 3.0]
Author:
Expand Down Expand Up @@ -67,7 +67,7 @@ func run(src string) int {
return exitCodeErr
}

blured := song2.GaussianBlur(img, *radius)
blurred := song2.GaussianBlur(img, *radius)

out, err := os.Create(filepath.Join(pwd, *output))
if err != nil {
Expand All @@ -76,7 +76,7 @@ func run(src string) int {
}
defer out.Close()

if err := png.Encode(out, blured); err != nil {
if err := png.Encode(out, blurred); err != nil {
fmt.Fprintln(os.Stderr, err)
return exitCodeErr
}
Expand Down

0 comments on commit 0ed1088

Please sign in to comment.