fix the wrong function description

This commit is contained in:
Lingfei Kong 2020-05-25 15:04:01 +08:00
parent 1d365a8cad
commit fa73cacc5d

View File

@ -69,7 +69,7 @@ func NewServerRunOptions() *ServerRunOptions {
}
}
// ApplyOptions applies the run options to the method receiver and returns self
// ApplyTo applies the run options to the method receiver and returns self
func (s *ServerRunOptions) ApplyTo(c *server.Config) error {
c.CorsAllowedOriginList = s.CorsAllowedOriginList
c.ExternalAddress = s.ExternalHost