Fix errors in README.md

This commit is contained in:
jst 2012-08-09 19:04:04 +02:00
parent 89ac70595b
commit 5389d2694d

View File

@ -21,11 +21,11 @@ Import package with
import "github.com/nfnt/resize" import "github.com/nfnt/resize"
``` ```
Resize creates a scaled image with new dimensions (`width`, `height`) using the interpolation function interp. Resize creates a scaled image with new dimensions (`width`, `height`) using the interpolation function `interp`.
If either `width` or `height` is set to 0, it will be set to an aspect ratio preserving value. If either `width` or `height` is set to 0, it will be set to an aspect ratio preserving value.
```go ```go
resize.Resize(width, height uint, img image.Image, interp resize.InterpolationFunction) image.Image, error resize.Resize(width, height uint, img image.Image, interp resize.InterpolationFunction) image.Image
``` ```
The provided interpolation functions are The provided interpolation functions are