Rename uppercase_first_letter to capitalize
Also rename `lowercase_first_letter` to `decapitalize` PiperOrigin-RevId: 834622292 Change-Id: I1cfbda1be782ff40dd3fc0726601cc6b1f427345
This commit is contained in:
committed by
Copybara-Service
parent
48ecddbe3b
commit
102f382c9d
@@ -31,12 +31,12 @@ def write_to_file(filepath: str, content: str) -> None:
|
||||
print(f"Error writing to output file: {filepath} - {e}")
|
||||
|
||||
|
||||
def lowercase_first_letter(input_string: str) -> str:
|
||||
def decapitalize(input_string: str) -> str:
|
||||
"""Lowercases the first letter of a string."""
|
||||
return input_string[:1].lower() + input_string[1:]
|
||||
|
||||
|
||||
def uppercase_first_letter(input_string: str) -> str:
|
||||
def capitalize(input_string: str) -> str:
|
||||
"""Uppercases the first letter of a string."""
|
||||
return input_string[:1].upper() + input_string[1:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user