Skip to content

Commit 2c9ff9f

Browse files
committed
Format example in README
1 parent fb21966 commit 2c9ff9f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,22 @@ import "github.com/gluster/gogfapi/gfapi"
3030
func main() {
3131
vol := &gfapi.Volume{}
3232
if err := vol.Init("testvol", "localhost"); err != nil {
33-
// handle error
33+
// handle error
3434
}
3535

3636
if err := vol.Mount(); err != nil {
37-
// handle error
37+
// handle error
3838
}
39-
defer vol.Unmount()
39+
defer vol.Unmount()
4040

4141
f, err := vol.Create("testfile")
4242
if err != nil {
43-
// handle error
43+
// handle error
4444
}
45-
defer f.Close()
45+
defer f.Close()
4646

4747
if _, err := f.Write([]byte("hello")); err != nil {
48-
// handle error
48+
// handle error
4949
}
5050

5151
return

0 commit comments

Comments
 (0)