Skip to content

Commit 598b032

Browse files
authored
Fix deprecation comment to reference correct function (#125)
Signed-off-by: Jonathan Collinge <jonathancollinge@live.com>
1 parent d7d50a1 commit 598b032

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/spiffe/context/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func With(ctx context.Context, spiffe *spiffe.SPIFFE) context.Context {
3535
return context.WithValue(ctx, x509SvidKey, spiffe.X509SVIDSource())
3636
}
3737

38-
// Deprecated: use FromX509 instead.
38+
// Deprecated: use X509From instead.
3939
// From retrieves the x509 SVID source from the context.
4040
func From(ctx context.Context) (x509svid.Source, bool) {
4141
svid, ok := ctx.Value(x509SvidKey).(x509svid.Source)

0 commit comments

Comments
 (0)