We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97ec296 commit 08d8804Copy full SHA for 08d8804
stdlib/public/core/Hasher.swift
@@ -359,8 +359,11 @@ public struct Hasher {
359
return Int(truncatingIfNeeded: _core.finalize())
360
}
361
362
- /// Finalize the hasher state and return the hash value. Finalizing consumes
363
- /// the hasher, forbidding further operations.
+ /// Finalize the hasher state and return the hash value.
+ ///
364
+ /// Finalizing consumes the hasher: it is illegal to finalize a hasher you
365
+ /// don't own, or to perform operations on a finalized hasher. (These may
366
+ /// become compile-time errors in the future.)
367
@effects(releasenone)
368
public __consuming func finalize() -> Int {
369
var core = _core
0 commit comments