Skip to content

Commit 5d42a59

Browse files
committed
typo
1 parent 1bb597a commit 5d42a59

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

lang/patch/lib.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ func (p *Patcher) SetPatchNodes(ps Patches) {
6060
}
6161

6262
type Options struct {
63-
RepoDir string
64-
OutDir string
65-
DefaultLanuage uniast.Language
63+
RepoDir string
64+
OutDir string
65+
DefaultLanguage uniast.Language
6666
}
6767

6868
func NewPatcher(repo *uniast.Repository, opts Options) *Patcher {
@@ -97,7 +97,7 @@ next_dep:
9797

9898
mod := p.repo.GetModule(patch.Id.ModPath)
9999
if mod == nil {
100-
mod = uniast.NewModule(patch.Id.ModPath, "", p.DefaultLanuage)
100+
mod = uniast.NewModule(patch.Id.ModPath, "", p.DefaultLanguage)
101101
p.repo.SetModule(patch.Id.ModPath, mod)
102102
}
103103

@@ -231,7 +231,7 @@ func (p *Patcher) Flush() error {
231231

232232
func (p *Patcher) getLangWriter(lang uniast.Language) uniast.Writer {
233233
if lang == "" || lang == uniast.Unknown {
234-
lang = p.DefaultLanuage
234+
lang = p.DefaultLanguage
235235
}
236236
switch lang {
237237
case uniast.Golang:

0 commit comments

Comments
 (0)