From 21635f71f4a176a85960a26486e87d1e923d6899 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Mon, 11 Apr 2011 10:48:00 +1000 Subject: [PATCH] freetype: update for os.Open changes. R=adg, r2 CC=golang-dev http://codereview.appspot.com/4386048 --- example/freetype/main.go | 2 +- example/gamma/main.go | 2 +- example/raster/main.go | 2 +- example/round/main.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/freetype/main.go b/example/freetype/main.go index c7e45b1..7a11caf 100644 --- a/example/freetype/main.go +++ b/example/freetype/main.go @@ -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) diff --git a/example/gamma/main.go b/example/gamma/main.go index b1839a3..cc25475 100644 --- a/example/gamma/main.go +++ b/example/gamma/main.go @@ -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) diff --git a/example/raster/main.go b/example/raster/main.go index 1e3d582..3861592 100644 --- a/example/raster/main.go +++ b/example/raster/main.go @@ -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) diff --git a/example/round/main.go b/example/round/main.go index fb12785..e0349ee 100644 --- a/example/round/main.go +++ b/example/round/main.go @@ -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)