From 477142fc3db151c2eae37f851ebc71ba7136c68b Mon Sep 17 00:00:00 2001 From: Josh Humphries Date: Wed, 22 May 2019 16:14:55 -0400 Subject: [PATCH] review feedback: rename method --- format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format.go b/format.go index bd4d424..db93eb4 100644 --- a/format.go +++ b/format.go @@ -201,12 +201,12 @@ func AnyResolverFromDescriptorSource(source DescriptorSource) jsonpb.AnyResolver return &anyResolver{source: source} } -// AnyResolverWithFallbackFromDescriptorSource returns an AnyResolver that will +// AnyResolverFromDescriptorSourceWithFallback returns an AnyResolver that will // search for types using the given descriptor source and then fallback to a // special message if the type is not found. The fallback type will render to // JSON with a "@type" property, just like an Any message, but also with a // custom "@value" property that includes the binary encoded payload. -func AnyResolverWithFallbackFromDescriptorSource(source DescriptorSource) jsonpb.AnyResolver { +func AnyResolverFromDescriptorSourceWithFallback(source DescriptorSource) jsonpb.AnyResolver { res := anyResolver{source: source} return &anyResolverWithFallback{AnyResolver: &res} }