Skip to content

Commit 40d5a5d

Browse files
authored
style: spelling and grammar fixes (#360)
1 parent 49b3818 commit 40d5a5d

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3838
### Changed
3939

4040
- Take server state into account in server completions. For example, do not offer started servers as completions for `server start` command.
41-
- Allow using UUID prefix as an argument. For example, if there is only one network available that has an UUID starting with `0316`, details of that network can be listed with `upctl network show 0316` command.
41+
- Allow using UUID prefix as an argument. For example, if there is only one network available that has a UUID starting with `0316`, details of that network can be listed with `upctl network show 0316` command.
4242
- Match title and name arguments case-insensitively if the given parameter does not resolve with an exact match.
4343

4444
## [3.11.1] - 2024-08-12

internal/commands/partner/account/create.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func (s *createCommand) InitCommand() {
3131
cReqDesc := " Required when other contact details are given."
3232

3333
fs.StringVar(&s.params.Username, "username", "", "Account username.")
34-
fs.StringVar(&s.params.Password, "password", "", "Account pasword.")
34+
fs.StringVar(&s.params.Password, "password", "", "Account password.")
3535
fs.StringVar(&s.params.ContactDetails.FirstName, "first-name", "", "Contact first name."+cReqDesc)
3636
fs.StringVar(&s.params.ContactDetails.LastName, "last-name", "", "Contact last name."+cReqDesc)
3737
fs.StringVar(&s.params.ContactDetails.Company, "company", "", "Contact company name.")

internal/config/optionalboolean.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (s OptionalBoolean) IsSet() bool {
132132
return s == True || s == False
133133
}
134134

135-
// OverrideNotSet returns a OptionalBoolean set to b if the original OptionalBoolean was not set
135+
// OverrideNotSet returns an OptionalBoolean set to b if the original OptionalBoolean was not set
136136
func (s OptionalBoolean) OverrideNotSet(b bool) OptionalBoolean {
137137
if s.IsSet() {
138138
return s

internal/resolver/matchers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func MatchArgWithWhitespace(arg, value string) MatchType {
1818
return MatchTypeNone
1919
}
2020

21-
// MatchStringWithWhitespace checks if arg matches given value as an unix style glob pattern.
21+
// MatchStringWithWhitespace checks if arg matches given value as a unix style glob pattern.
2222
func MatchArgWithGlobPattern(arg, value string) MatchType {
2323
if matched, _ := filepath.Match(arg, value); matched {
2424
return MatchTypeGlobPattern

internal/ui/details.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type DetailsView struct {
6464
headerWidth int
6565
}
6666

67-
// Render renders a ata container for details as a table
67+
// Render renders a data container for details as a table
6868
func (s *DetailsView) Render() string {
6969
if len(s.rows) < 1 {
7070
return ""

internal/ui/list_layout.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ type ListLayout struct {
5555
style listLayoutConfig
5656
}
5757

58-
// NewListLayout returns a a new list data renderer
58+
// NewListLayout returns a new list data renderer
5959
func NewListLayout(style listLayoutConfig) *ListLayout {
6060
l := list.NewWriter()
6161
l.SetStyle(defaultListStyle)

internal/ui/numeric.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ func FormatBytes(n int) string {
8989
return fmt.Sprintf("%sB", AbbrevNumBinaryPrefix(uint(n)))
9090
}
9191

92-
// ParseAbbrevNum parses a string formatted to an uint in SI unit style. (eg. "1k" = 1000)
92+
// ParseAbbrevNum parses a string formatted to a uint in SI unit style. (eg. "1k" = 1000)
9393
func ParseAbbrevNum(s string) (uint, error) {
9494
return parseAbbrevInt(s, siMultiples)
9595
}
9696

97-
// ParseAbbrevNumBinaryPrefix parses a string formatted to an uint in binary units. (eg. "1Ki" = 1000)
97+
// ParseAbbrevNumBinaryPrefix parses a string formatted to a uint in binary units. (eg. "1Ki" = 1000)
9898
func ParseAbbrevNumBinaryPrefix(s string) (uint, error) {
9999
return parseAbbrevInt(s, binaryMultiples)
100100
}

0 commit comments

Comments
 (0)