8000 fixed typo in spelling · 2714rohit/Java-Coding-Problems@fb1b669 · GitHub
[go: up one dir, main page]

Skip to content
< 8000 header class="HeaderMktg header-logged-out js-details-container js-header Details f4 py-3" role="banner" data-is-top="true" data-color-mode=light data-light-theme=light data-dark-theme=dark>

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb1b669

Browse files
author
Divyansh Bhardwaj
authored
fixed typo in spelling
surrogate was written as `suroggate`
1 parent 115606b commit fb1b669

File tree

1 file changed

+1
- CB73 1
lines changed
  • Chapter01/P01_CountDuplicateCharacters/src/modern/challenge

1 file changed

+1
-1
lines changed

Chapter01/P01_CountDuplicateCharacters/src/modern/challenge/Strings.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static Map<String, Integer> countDuplicateCharactersVCP1(String str) {
5151
// or, like this (this code produce the same result as the commented code above
5252
int cp = str.codePointAt(i);
5353
String ch = String.valueOf(Character.toChars(cp));
54-
if(Character.charCount(cp) == 2) { // 2 means a suroggate pair
54+
if(Character.charCount(cp) == 2) { // 2 means a surrogate pair
5555
i++;
5656
}
5757

0 commit comments

Comments
 (0)
0