diff --git a/README.md b/README.md index abe948e..78307cf 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,11 @@ func main() { ```go res, _ := imageType.ParsePath("../testdata/test.jpg") -if img != nil { +if res != nil { fmt.Println("It's image") } ``` # Licenses -All source code is licensed under the [MIT License](https://github.com/mushroomsir/image-type/blob/master/LICENSE). \ No newline at end of file +All source code is licensed under the [MIT License](https://github.com/mushroomsir/image-type/blob/master/LICENSE).