Skip to content

docs: fix typos and copy-paste errors in comments#31

Open
Avicennasis wants to merge 1 commit into
lazada:masterfrom
Avicennasis:docs/fix-typos
Open

docs: fix typos and copy-paste errors in comments#31
Avicennasis wants to merge 1 commit into
lazada:masterfrom
Avicennasis:docs/fix-typos

Conversation

@Avicennasis

Copy link
Copy Markdown

Summary

Fix doc comment issues across 5 files:

Typos:

  • serverserve in ServeHTTP comments (generator.go, generator_singleton.go)
  • Stray ] bracket in helper.go doc comment

Copy-paste errors:

  • SetBasePath comment said "host info" — copy-pasted from SetHost, should say "base path"
  • ReflectGoTypes comment said "controls JSON indentation" — copy-pasted from IndentJSON
  • ServeHTTP in singleton referenced http.HandleFunc instead of http.Handler

Grammar:

  • list all of paths objectlist all path objects
  • enable HTTP handler support CORSenables HTTP handler to support CORS

Go doc convention:

  • Updated doc comment verbs to third-person singular per Go convention (createcreates, setsets, addadds, returnreturns)

No functional changes — comments only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant