Skip to content

Commit 3553fc5

Browse files
committed
typo
1 parent 0e0da9b commit 3553fc5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -380,8 +380,8 @@ type ScalewayServer struct {
380380
Organization string `json:"organization,omitempty"`
381381
}
382382

383-
// ScalewayServerPathNameDefinition represents a Scaleway C1 server with only its name as field
384-
type ScalewayServerPathNameDefinition struct {
383+
// ScalewayServerPatchNameDefinition represents a Scaleway C1 server with only its name as field
384+
type ScalewayServerPatchNameDefinition struct {
385385
// Name is the user-defined name of the server
386386
Name string `json:"name"`
387387
}
@@ -683,7 +683,7 @@ func (s *ScalewayAPI) PostServer(definition ScalewayServerDefinition) (string, e
683683
}
684684

685685
// PatchServerName changes the name of the server
686-
func (s *ScalewayAPI) PatchServerName(serverID string, definition ScalewayServerPathNameDefinition) error {
686+
func (s *ScalewayAPI) PatchServerName(serverID string, definition ScalewayServerPatchNameDefinition) error {
687687
resp, err := s.PatchResponse(fmt.Sprintf("servers/%s", serverID), definition)
688688
if err != nil {
689689
return err

rename.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ func runRename(cmd *Command, args []string) {
2626

2727
serverID := cmd.API.GetServerID(args[0])
2828

29-
var server ScalewayServerPathNameDefinition
29+
var server ScalewayServerPatchNameDefinition
3030
server.Name = args[1]
3131

3232
err := cmd.API.PatchServerName(serverID, server)

0 commit comments

Comments
 (0)