Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
defcronyke committed May 14, 2018
1 parent 1fe9b0f commit 9453a25
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ type Client struct {
}

// NewClient is a constructor for making a new godscache client. Start here. It makes a datastore
// client and stores it in the Parent field. And it makes a memcache client. Set the environment
// client and stores it in the Parent field, and it makes a memcache client. Set the environment
// variable GODSCACHE_MEMCACHED_SERVERS="ip_address1:port,ip_addressN:port" to specify the addresses
// of your memcached servers. The address:port combinations need to be separated by a comma with
// no space after.
Expand Down
8 changes: 3 additions & 5 deletions client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1775,8 +1775,7 @@ func ExampleClient_DeleteMulti() {
keys := make([]*datastore.Key, 0, 2)
vals := make([]*TestDbData, 0, 2)

// Create a new incomplete key for a given datastore kind. This key will be complete
// and usable for queries after running PutMulti() below.
// Create a new incomplete key for a given datastore kind.
key := datastore.IncompleteKey(kind, nil)

// Create test data to put into datastore and cache.
Expand All @@ -1788,11 +1787,10 @@ func ExampleClient_DeleteMulti() {
keys = append(keys, key)
vals = append(vals, val)

// Create a new incomplete key for a given datastore kind. This key will be complete
// and usable for queries after running PutMulti() below.
// Create another incomplete key for a given datastore kind.
key = datastore.IncompleteKey(kind, nil)

// Create test data to put into datastore and cache.
// Create another piece of test data to put into datastore and cache.
val = &TestDbData{
TestString: "ExampleClient_DeleteMulti 2",
}
Expand Down

0 comments on commit 9453a25

Please sign in to comment.