Perfect documentation

Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
This commit is contained in:
yuxiaobo
2019-09-25 16:59:31 +08:00
parent aba201344e
commit 5ea9363624
7 changed files with 7 additions and 7 deletions

View File

@@ -64,7 +64,7 @@ func Namespace(ctx context.Context) (string, bool) {
return namespace, ok
}
// NamespaceRequired returns the valid namepace from the context or an error.
// NamespaceRequired returns the valid namespace from the context or an error.
func NamespaceRequired(ctx context.Context) (string, error) {
namespace, ok := Namespace(ctx)
if !ok || namespace == "" {