Do some minor cleanup

git-svn-id: file:///srv/svn/repo/mai/trunk@12 e410bdd4-646f-c54f-a7ce-fffcc4f439ae
This commit is contained in:
fattalion
2022-09-30 20:16:37 +00:00
parent a872b63b2f
commit 306e58d5af
4 changed files with 5 additions and 5 deletions

View File

@@ -226,7 +226,7 @@ type icibaTranslateResponse struct {
} `json:"content"`
}
func (_ *ICIBA) Translate(text string, from Language, to Language) (TranslationResult, error) {
func (_ *ICIBA) Translate(text string, from, to Language) (TranslationResult, error) {
requestURL, err := url.Parse("https://ifanyi.iciba.com/index.php")
if err != nil {