Skip to content

Commit d507793

Browse files
committed
[String] Replace codePoint by codePointsAt
1 parent 2c4b917 commit d507793

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/string.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,8 @@ objects::
388388

389389
// returns the value of the code point stored at the given position
390390
// (code points of 'नमस्ते' graphemes = [2344, 2350, 2360, 2340]
391-
u('नमस्ते')->codePoint(0); // 2344
392-
u('नमस्ते')->codePoint(2); // 2360
391+
u('नमस्ते')->codePointsAt(0); // 2344
392+
u('नमस्ते')->codePointsAt(2); // 2360
393393

394394
`Unicode equivalence`_ is the specification by the Unicode standard that
395395
different sequences of code points represent the same character. For example,

0 commit comments

Comments
 (0)