File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,9 +60,9 @@ func (p *Patcher) SetPatchNodes(ps Patches) {
6060}
6161
6262type Options struct {
63- RepoDir string
64- OutDir string
65- DefaultLanuage uniast.Language
63+ RepoDir string
64+ OutDir string
65+ DefaultLanguage uniast.Language
6666}
6767
6868func 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
232232func (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 :
You can’t perform that action at this time.
0 commit comments