Skip to content

Commit 93eec05

Browse files
authored
Merge pull request #64 from jbampton/fix-spelling
Fix spelling
2 parents 8673770 + c695652 commit 93eec05

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cloudstack/cloudstack.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ func NewClient(apiurl string, apikey string, secret string, verifyssl bool, opti
369369

370370
// For sync API calls this client behaves exactly the same as a standard client call, but for async API calls
371371
// this client will wait until the async job is finished or until the configured AsyncTimeout is reached. When the async
372-
// job finishes successfully it will return actual object received from the API and nil, but when the timout is
372+
// job finishes successfully it will return actual object received from the API and nil, but when the timeout is
373373
// reached it will return the initial object containing the async job ID for the running job and a warning.
374374
func NewAsyncClient(apiurl string, apikey string, secret string, verifyssl bool, options ...ClientOption) *CloudStackClient {
375375
cs := newClient(apiurl, apikey, secret, true, verifyssl, options...)

generate/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ func (as *allServices) GeneralCode() ([]byte, error) {
438438
pn("")
439439
pn("// For sync API calls this client behaves exactly the same as a standard client call, but for async API calls")
440440
pn("// this client will wait until the async job is finished or until the configured AsyncTimeout is reached. When the async")
441-
pn("// job finishes successfully it will return actual object received from the API and nil, but when the timout is")
441+
pn("// job finishes successfully it will return actual object received from the API and nil, but when the timeout is")
442442
pn("// reached it will return the initial object containing the async job ID for the running job and a warning.")
443443
pn("func NewAsyncClient(apiurl string, apikey string, secret string, verifyssl bool, options ...ClientOption) *CloudStackClient {")
444444
pn(" cs := newClient(apiurl, apikey, secret, true, verifyssl, options...)")

test/cloudstack_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,15 @@ func TestUUID(t *testing.T) {
150150
t.Errorf("could not unserialize long into UUID: %s", err)
151151
}
152152
if res.Value != "4801878" {
153-
t.Errorf("unepected value '%s', expecting 4801878", res.Value)
153+
t.Errorf("unexpected value '%s', expecting 4801878", res.Value)
154154
}
155155

156156
res.Value = ""
157157
if err := json.Unmarshal([]byte(valString), &res); err != nil {
158158
t.Errorf("could not unserialize string into UUID: %s", err)
159159
}
160160
if res.Value != "994801878" {
161-
t.Errorf("unepected value '%s', expecting 994801878", res.Value)
161+
t.Errorf("unexpected value '%s', expecting 994801878", res.Value)
162162
}
163163

164164
res.Value = ""

0 commit comments

Comments
 (0)