Skip to content

Commit 911bfc7

Browse files
committed
README: Fix Results example so that it is valid code
1 parent 2e7684d commit 911bfc7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,14 @@ As shown above in the Between example optional arguments are passed to the funct
118118

119119
Different result types are returned depending on what function is used to execute the query.
120120

121-
- `Run` returns a cursor which can be used to view
122-
all rows returned.
123-
- `RunWrite` returns a WriteResponse and should be used for queries such as Insert,Update,etc...
121+
- `Run` returns a cursor which can be used to view all rows returned.
122+
- `RunWrite` returns a WriteResponse and should be used for queries such as Insert, Update, etc...
124123
- `Exec` sends a query to the server and closes the connection immediately after reading the response from the database. If you do not wish to wait for the response then you can set the `NoReply` flag.
125124

126125
Example:
127126

128127
```go
129-
res, err := Table("tablename").Get(key).Run(session)
128+
res, err := r.Db("database").Table("tablename").Get(key).Run(session)
130129
if err != nil {
131130
// error
132131
}

0 commit comments

Comments
 (0)