Skip to content

docs: warn that zero-valued Digest needs New/Reset - #87

Open
Solaris-star wants to merge 1 commit into
cespare:mainfrom
Solaris-star:docs/65-zero-digest-warning
Open

docs: warn that zero-valued Digest needs New/Reset#87
Solaris-star wants to merge 1 commit into
cespare:mainfrom
Solaris-star:docs/65-zero-digest-warning

Conversation

@Solaris-star

Copy link
Copy Markdown

Summary

#65 notes that a zero-valued Digest is not ready for writes (must New/Reset first), which is easy to miss when embedding Digest.

Fix

Document this sharp edge in the README next to the Digest API.

Fixes #65

A zero Digest is a sharp edge when embedded in larger structs (cespare#65).
Call out New/Reset in the README next to the Digest API.

Fixes cespare#65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it impossible to accidentally use an uninitialized Digest

1 participant