Skip to content

Commit 98ed8ae

Browse files
committed
fix: update deprecation message for String::charcode_at to suggest using _[_]
1 parent 3e9e0bd commit 98ed8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/intrinsics.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,7 @@ pub fn String::length(self : String) -> Int = "%string_length"
15581558
/// * `index` : The position in the string from which to retrieve the code unit.
15591559
///
15601560
/// This method has O(1) complexity.
1561-
#deprecated("Use `code_unit_at` instead which returns UInt16")
1561+
#deprecated("Use `_[_]` instead which returns UInt16")
15621562
pub fn String::charcode_at(self : String, idx : Int) -> Int = "%string_get"
15631563

15641564
///|

0 commit comments

Comments
 (0)