From 1ba6cdae4aed57db635f71855dd814e3af55d0da Mon Sep 17 00:00:00 2001 From: chenguoyan01 Date: Tue, 30 Jan 2018 11:17:39 +0800 Subject: [PATCH] fix portallocator comments Change-Id: I547168de08acaedad03ac472c6b6afa578b8a7c4 --- pkg/registry/core/service/portallocator/allocator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/core/service/portallocator/allocator.go b/pkg/registry/core/service/portallocator/allocator.go index c31f4b045ea..a9db71cd328 100644 --- a/pkg/registry/core/service/portallocator/allocator.go +++ b/pkg/registry/core/service/portallocator/allocator.go @@ -74,7 +74,7 @@ func NewPortAllocatorCustom(pr net.PortRange, allocatorFactory allocator.Allocat return a } -// Helper that wraps NewAllocatorCIDRRange, for creating a range backed by an in-memory store. +// Helper that wraps NewPortAllocatorCustom, for creating a range backed by an in-memory store. func NewPortAllocator(pr net.PortRange) *PortAllocator { return NewPortAllocatorCustom(pr, func(max int, rangeSpec string) allocator.Interface { return allocator.NewAllocationMap(max, rangeSpec)