Skip to content

Commit

Permalink
Fix WithSnapshotter doc to reference non-deprecated method (#2180)
Browse files Browse the repository at this point in the history
Signed-off-by: Anuraag Agrawal <[email protected]>
  • Loading branch information
anuraaga authored Apr 9, 2024
1 parent c6a907b commit f31be30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion experimental/checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type EnableSnapshotterKey = ctxkey.EnableSnapshotterKey

// WithSnapshotter enables snapshots.
// Passing the returned context to a exported function invocation enables snapshots,
// and allows host functions to retrieve the Snapshotter using SnapshotterKey.
// and allows host functions to retrieve the Snapshotter using GetSnapshotter.
func WithSnapshotter(ctx context.Context) context.Context {
return context.WithValue(ctx, ctxkey.EnableSnapshotterKey{}, struct{}{})
}
Expand Down

0 comments on commit f31be30

Please sign in to comment.