From abd145043bb5477169f062951ec2db38d572d357 Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 17 Mar 2017 06:21:55 +0000 Subject: [PATCH] compose: update the comment about MappingWithEquals Signed-off-by: Akihiro Suda Upstream-commit: 2fc6cd4b71b902a65e56b7e0264356fc0d70f8ed Component: cli --- components/cli/compose/types/types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/cli/compose/types/types.go b/components/cli/compose/types/types.go index bb12f8497b..3e6651fd32 100644 --- a/components/cli/compose/types/types.go +++ b/components/cli/compose/types/types.go @@ -134,7 +134,9 @@ type StringList []string type StringOrNumberList []string // MappingWithEquals is a mapping type that can be converted from a list of -// key=value strings +// key[=value] strings. +// For the key with an empty value (`key=`), the mapped value is set to a pointer to `""`. +// For the key without value (`key`), the mapped value is set to nil. type MappingWithEquals map[string]*string // Labels is a mapping type for labels