From 7750422a9d5038a2b9da5b79990ceff406434f77 Mon Sep 17 00:00:00 2001 From: PingWang Date: Sat, 10 Nov 2018 15:38:56 +0800 Subject: [PATCH] Fix function comment Signed-off-by: PingWang --- cmd/kube-scheduler/app/server.go | 2 +- staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/kube-scheduler/app/server.go b/cmd/kube-scheduler/app/server.go index 2fb574d8b20..41c9e9fdea8 100644 --- a/cmd/kube-scheduler/app/server.go +++ b/cmd/kube-scheduler/app/server.go @@ -291,7 +291,7 @@ func newMetricsHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration) h return pathRecorderMux } -// newHealthzServer creates a healthz server from the config, and will also +// newHealthzHandler creates a healthz server from the config, and will also // embed the metrics handler if the healthz and metrics address configurations // are the same. func newHealthzHandler(config *kubeschedulerconfig.KubeSchedulerConfiguration, separateMetrics bool) http.Handler { diff --git a/staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go b/staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go index 2f0eb7aa5b2..66314be322d 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go +++ b/staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder.go @@ -55,7 +55,7 @@ type PathRecorderMux struct { pathStacks map[string]string } -// pathHandler is an http.Handler that will satify requests first by exact match, then by prefix, +// pathHandler is an http.Handler that will satisfy requests first by exact match, then by prefix, // then by notFoundHandler type pathHandler struct { // muxName is used for logging so you can trace requests through