diff --git a/src/digest/digest.cr b/src/digest/digest.cr index 62ca3878c8c8..765f940ca47b 100644 --- a/src/digest/digest.cr +++ b/src/digest/digest.cr @@ -37,7 +37,7 @@ abstract class Digest # ctx.update "f" # ctx.update "oo" # end - # digest.hexfinal # => "acbd18db4cc2f85cedef654fccc4a4d8" + # digest.hexstring # => "acbd18db4cc2f85cedef654fccc4a4d8" # ``` def digest(& : self ->) : Bytes context = new diff --git a/src/kernel.cr b/src/kernel.cr index 6e90457578a1..c8c511cecb8e 100644 --- a/src/kernel.cr +++ b/src/kernel.cr @@ -298,7 +298,7 @@ end # sprintf "%b", -123 # => "-1111011" # sprintf "%#b", 0 # => "0" # sprintf "% b", 123 # => " 1111011" -# sprintf "%+ b", 123 # => "+ 1111011" +# sprintf "%+ b", 123 # => "+1111011" # sprintf "% b", -123 # => "-1111011" # sprintf "%+ b", -123 # => "-1111011" # sprintf "%#b", 123 # => "0b1111011"