diff --git a/source/data/hints.hexa b/source/data/hints.hexa index 5b5ec5f..67530ba 100644 --- a/source/data/hints.hexa +++ b/source/data/hints.hexa @@ -1,5 +1,5 @@ // The Hexa Compiler -// Copyright (C) 2021-2022 Oleh Petrenko +// Copyright (C) 2021-2024 Oleh Petrenko // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by @@ -33,7 +33,7 @@ class Hint { } static fun toTitleCase(text: String): String { - if text.length == 0 { + if text.length == 1 { return text.toUpperCase() } @@ -41,7 +41,7 @@ class Hint { } static fun toCamelCase(text: String): String { - if text.length == 0 { + if text.length == 1 { return text.toLowerCase() }