freetype: update for os.Open changes.

R=adg, r2
CC=golang-dev
http://codereview.appspot.com/4386048
This commit is contained in:
Nigel Tao 2011-04-11 10:48:00 +10:00
parent 380b6363b2
commit 21635f71f4
4 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ func main() {
}
// Save that RGBA image to disk.
f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600)
f, err := os.Create("out.png")
if err != nil {
log.Println(err)
os.Exit(1)

View File

@ -66,7 +66,7 @@ func main() {
}
// Save that RGBA image to disk.
f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600)
f, err := os.Create("out.png")
if err != nil {
log.Println(err)
os.Exit(1)

View File

@ -153,7 +153,7 @@ func main() {
showNodes(rgba, inside)
// Save that RGBA image to disk.
f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600)
f, err := os.Create("out.png")
if err != nil {
log.Println(err)
os.Exit(1)

View File

@ -78,7 +78,7 @@ func main() {
}
// Save that RGBA image to disk.
f, err := os.Open("out.png", os.O_CREAT|os.O_WRONLY, 0600)
f, err := os.Create("out.png")
if err != nil {
log.Println(err)
os.Exit(1)