Skip to content

Commit

Permalink
[HINT] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PeyTy committed Jul 2, 2024
1 parent fb52139 commit a081e6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/data/hints.hexa
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -33,15 +33,15 @@ class Hint {
}

static fun toTitleCase(text: String): String {
if text.length == 0 {
if text.length == 1 {
return text.toUpperCase()
}

return text.substr(0,1).toUpperCase() + text.substr(1)
}

static fun toCamelCase(text: String): String {
if text.length == 0 {
if text.length == 1 {
return text.toLowerCase()
}

Expand Down

0 comments on commit a081e6c

Please sign in to comment.