From b62f23695ed7009f899ec40b117b8372de85029a Mon Sep 17 00:00:00 2001 From: Robinson Date: Sun, 2 Jul 2023 02:46:28 +0200 Subject: [PATCH] fixed typo --- src/dorkbox/bytes/Hex.kt | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/dorkbox/bytes/Hex.kt b/src/dorkbox/bytes/Hex.kt index d188bf6..80d70f8 100644 --- a/src/dorkbox/bytes/Hex.kt +++ b/src/dorkbox/bytes/Hex.kt @@ -1,3 +1,19 @@ +/* + * Copyright 2023 dorkbox, llc + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + /* * MIT License * @@ -79,7 +95,7 @@ object Hex { * @throws IllegalArgumentException if the value is not a hexadecimal string. */ fun decode(value: String): ByteArray { - // An hex string must always have length multiple of 2 + // A hex string must always have length multiple of 2 if (value.length % 2 != 0) { throw IllegalArgumentException("hex-string must have an even number of digits (nibbles)") }