Skip to content

Commit 9ca4765

Browse files
committed
Fix C++ Typo
1 parent 623272b commit 9ca4765

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

server/docs/2.5/README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5702,8 +5702,8 @@ void callback(webui::window::event* e) {
57025702
// JavaScript:
57035703
// callback(12345, 6789);
57045704
5705-
long long int n1 = e->get_int_at(0);
5706-
long long int n2 = e->get_int_at(1);
5705+
long long int n1 = e->get_int(0);
5706+
long long int n2 = e->get_int(1);
57075707
}
57085708
```
57095709
<!-- ---------- -->
@@ -5914,8 +5914,8 @@ void callback(webui::window::event* e) {
59145914
// JavaScript:
59155915
// callback(12.34, 56.789);
59165916
5917-
double f1 = e->get_float_at(0);
5918-
double f2 = e->get_float_at(1);
5917+
double f1 = e->get_float(0);
5918+
double f2 = e->get_float(1);
59195919
}
59205920
```
59215921
<!-- ---------- -->
@@ -6128,8 +6128,8 @@ void callback(webui::window::event* e) {
61286128
// JavaScript:
61296129
// callback("Foo", "Bar");
61306130
6131-
const char* foo = e->get_string_at(0);
6132-
const char* bar = e->get_string_at(1);
6131+
const char* foo = e->get_string(0);
6132+
const char* bar = e->get_string(1);
61336133
}
61346134
```
61356135
<!-- ---------- -->
@@ -6340,8 +6340,8 @@ void callback(webui::window::event* e) {
63406340
// JavaScript:
63416341
// callback(true, false);
63426342
6343-
bool status1 = e->get_bool_at(0);
6344-
bool status2 = e->get_bool_at(1);
6343+
bool status1 = e->get_bool(0);
6344+
bool status2 = e->get_bool(1);
63456345
}
63466346
```
63476347
<!-- ---------- -->
@@ -6552,8 +6552,8 @@ void callback(webui::window::event* e) {
65526552
// JavaScript:
65536553
// callback("Foo", "Bar");
65546554
6555-
size_t fooLen = e->get_size_at(0);
6556-
size_t barLen = e->get_size_at(1);
6555+
size_t fooLen = e->get_size(0);
6556+
size_t barLen = e->get_size(1);
65576557
}
65586558
```
65596559
<!-- ---------- -->

0 commit comments

Comments
 (0)