Skip to content

Commit

Permalink
[mojo][docs] Minor fix on Unions setter function.
Browse files Browse the repository at this point in the history
Change-Id: I284e9e3b79f9bdd41320bc0554249a8c90edb583
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4351218
Reviewed-by: Ken Rockot <rockot@google.com>
Auto-Submit: Xinghui Lu <xinghuilu@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/main@{#1118997}
  • Loading branch information
Xinghui Lu authored and Chromium LUCI CQ committed Mar 18, 2023
1 parent e0ff045 commit d701fb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mojo/public/cpp/bindings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,7 @@ attempts to access that field will DCHECK:

```cpp
ValuePtr value = Value::NewIntValue(42);
LOG(INFO) << "Value is " << value->string_value(); // DCHECK!
LOG(INFO) << "Value is " << value->get_string_value(); // DCHECK!
```
### Sending Interfaces Over Interfaces
Expand Down

0 comments on commit d701fb5

Please sign in to comment.