diff options
| author | BurdetteLamar <burdettelamar@yahoo.com> | 2025-10-26 21:35:07 +0100 |
|---|---|---|
| committer | Peter Zhu <peter@peterzhu.ca> | 2025-10-27 21:14:54 -0400 |
| commit | bf2663ce0645dcf5b375829d31e755e13da9852e (patch) | |
| tree | a329393526f70c990674aa28c3e7d1c0c20e5637 /doc | |
| parent | e5e32acc7ec020e3fd7a7dff76e19a6f39ffb3ab (diff) | |
[DOC] Tweaks for String#sum
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/string/sum.rdoc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/string/sum.rdoc b/doc/string/sum.rdoc index 5de24e6402..125611411e 100644 --- a/doc/string/sum.rdoc +++ b/doc/string/sum.rdoc @@ -1,4 +1,4 @@ -Returns a basic +n+-bit checksum of the characters in +self+; +Returns a basic +n+-bit {checksum}[https://en.wikipedia.org/wiki/Checksum] of the characters in +self+; the checksum is the sum of the binary value of each byte in +self+, modulo <tt>2**n - 1</tt>: @@ -9,3 +9,5 @@ modulo <tt>2**n - 1</tt>: 'こんにちは'.sum # => 2582 This is not a particularly strong checksum. + +Related: see {Querying}[rdoc-ref:String@Querying]. |
