Skip to content

Commit 0e3cab5

Browse files
committed
updated
1 parent af745a6 commit 0e3cab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ int main()
9999
std::optional<Record> classPerson = MyReflection().getClass("Person");
100100
101101
/* Create an instance of 'class Person' via reflection using the default constructor.
102-
Returns 'RStatus' and 'Instance' objects. */
103-
auto [status, personObj] = classPerson->instance();
102+
Returns 'RStatus' and 'Instance' objects.
103+
*/ auto [status, personObj] = classPerson->instance();
104104
105105
```
106106
- `RStatus` contains error-code (`rtl::Error`) indicating reflection call success/failure and return value wrapped in `std::any` of call, if any.
@@ -109,7 +109,7 @@ int main()
109109

110110
/* Create an instance via reflection using a parameterized constructor.
111111
Argument types/order must match else call will fail, returning error-code in 'status'.
112-
auto [status, personObj] = classPerson->instance(std::string("John Doe"), int(42));
112+
*/ auto [status, personObj] = classPerson->instance(std::string("John Doe"), int(42));
113113

114114
// Get method of 'class Person'. Returns a callable 'Method' object.
115115
std::optional<Method> setAge = classPerson->getMethod("setAge");

0 commit comments

Comments
 (0)