Skip to content

Commit

Permalink
docs(common-utils): Say that hex digits are returned lowercase
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth authored and fviernau committed Feb 2, 2024
1 parent 99e3b1c commit 5213ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/common/src/main/kotlin/Extensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import java.util.Locale
inline fun <T> T.alsoIfNull(block: (T) -> Unit): T = this ?: also(block)

/**
* Return a string of hexadecimal digits representing the bytes in the array.
* Return a string of lowercase hexadecimal digits representing the bytes in the array.
*/
fun ByteArray.encodeHex(): String = joinToString("") { String.format(Locale.ROOT, "%02x", it) }

Expand Down

0 comments on commit 5213ce3

Please sign in to comment.