Permalink
Browse files

Comments and missing words.

  • Loading branch information...
1 parent 0fe6c96 commit aa88fd978cd0fb983b119c0c6debdb75408508f6 @smashwilson smashwilson committed Oct 31, 2014
Showing with 7 additions and 6 deletions.
  1. +1 −1 doc.go
  2. +6 −5 endpoint_search.go
View
@@ -45,7 +45,7 @@ Extract function from an applicable extension:
All requests that enumerate a collection return a Pager struct that is used to
iterate through the results one page at a time. Use the EachPage method on that
Pager to handle each successive Page in a closure, then use the appropriate
-extraction method from that requests' package to interpret that Page as a slice
+extraction method from that request's package to interpret that Page as a slice
of results:
err := servers.List(client, nil).EachPage(func (page pagination.Page) (bool, error) {
View
@@ -21,23 +21,24 @@ var (
// Different identity services use different terminology for these. Identity v2
// lists them as different kinds of URLs within the service catalog ("adminURL",
// "internalURL", and "publicURL"), while v3 lists them as "Interfaces" in an
-// endpoints response.
+// endpoint's response.
type Availability string
const (
- // AvailabilityAdmin indicates that an endpoint only available to administrators.
+ // AvailabilityAdmin indicates that an endpoint is only available to
+ // administrators.
AvailabilityAdmin Availability = "admin"
- // AvailabilityPublic indicates that an endpoint available to everyone on the
- // internet.
+ // AvailabilityPublic indicates that an endpoint is available to everyone on
+ // the internet.
AvailabilityPublic Availability = "public"
// AvailabilityInternal indicates that an endpoint is only available within
// the cluster's internal network.
AvailabilityInternal Availability = "internal"
)
-// EndpointOpts specifies search criteria used to by queries against an
+// EndpointOpts specifies search criteria used by queries against an
// OpenStack service catalog. The options must contain enough information to
// unambiguously identify one, and only one, endpoint within the catalog.
//

0 comments on commit aa88fd9

Please sign in to comment.