Skip to content

Commit

Permalink
api: fix some documentation typos
Browse files Browse the repository at this point in the history
Signed-off-by: Yoan Blanc <yoan@dosimple.ch>
  • Loading branch information
greut committed Apr 27, 2020
1 parent 838b16d commit 26c1aeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/jobs.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type Jobs struct {
client *Client
}

// JobsParseRequest is used for arguments of the /vi/jobs/parse endpoint
// JobsParseRequest is used for arguments of the /v1/jobs/parse endpoint
type JobsParseRequest struct {
// JobHCL is an hcl jobspec
JobHCL string
Expand All @@ -60,7 +60,7 @@ func (c *Client) Jobs() *Jobs {
return &Jobs{client: c}
}

// Parse is used to convert the HCL repesentation of a Job to JSON server side.
// ParseHCL is used to convert the HCL repesentation of a Job to JSON server side.
// To parse the HCL client side see package github.com/hashicorp/nomad/jobspec
func (j *Jobs) ParseHCL(jobHCL string, canonicalize bool) (*Job, error) {
var job Job
Expand Down

0 comments on commit 26c1aeb

Please sign in to comment.