Skip to content

Commit f31be30

Browse files
authored
Fix WithSnapshotter doc to reference non-deprecated method (#2180)
Signed-off-by: Anuraag Agrawal <[email protected]>
1 parent c6a907b commit f31be30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experimental/checkpoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type EnableSnapshotterKey = ctxkey.EnableSnapshotterKey
3030

3131
// WithSnapshotter enables snapshots.
3232
// Passing the returned context to a exported function invocation enables snapshots,
33-
// and allows host functions to retrieve the Snapshotter using SnapshotterKey.
33+
// and allows host functions to retrieve the Snapshotter using GetSnapshotter.
3434
func WithSnapshotter(ctx context.Context) context.Context {
3535
return context.WithValue(ctx, ctxkey.EnableSnapshotterKey{}, struct{}{})
3636
}

0 commit comments

Comments
 (0)