Skip to content

Commit 33cfe49

Browse files
Update reference/cstdlib/mblen.md
Co-authored-by: Raclamusi <[email protected]>
1 parent 5be3262 commit 33cfe49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/cstdlib/mblen.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ namespace std {
3838
int main() {
3939
std::setlocale(LC_ALL, "ja_JP.UTF-8");
4040
const char *str = "こんにちは";
41-
int result = std::mblen(str, std::strlen(s));
41+
int result = std::mblen(str, std::strlen(str));
4242
std::cout << result << std::endl;
4343
return 0;
4444
}

0 commit comments

Comments
 (0)