From f2ebce042d181f988e175c27196a9b25f173fb8b Mon Sep 17 00:00:00 2001 From: Noah Watkins Date: Wed, 3 Dec 2014 21:05:59 -0800 Subject: [PATCH] doc: fix formatting in README Signed-off-by: Noah Watkins --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 40a06a9..19357da 100644 --- a/README.md +++ b/README.md @@ -50,20 +50,20 @@ Object in RADOS can be written to and read from with through an interface very similar to a standard file I/O interface: ```go - // open a pool handle - pool, err := conn.OpenPool("mypool") +// open a pool handle +pool, err := conn.OpenPool("mypool") - // write some data - bytes_in := []byte("input data") - err = pool.Write("obj", bytes_in, 0) +// write some data +bytes_in := []byte("input data") +err = pool.Write("obj", bytes_in, 0) - // read the data back out - bytes_out := make([]byte, len(bytes_in)) - n_out, err := pool.Read("obj", bytes_out, 0) +// read the data back out +bytes_out := make([]byte, len(bytes_in)) +n_out, err := pool.Read("obj", bytes_out, 0) - if bytes_in != bytes_out { - fmt.Println("Output is not input!") - } +if bytes_in != bytes_out { + fmt.Println("Output is not input!") +} ``` ### Pool maintenance