commit | 1a5032f4cc845e627ad30630f0f793acaeee9eb6 | [log] [tgz] |
---|---|---|
author | Tom McKee <[email protected]> | Thu Aug 02 17:14:55 2018 |
committer | Commit Bot <[email protected]> | Thu Aug 02 17:14:55 2018 |
tree | cb831241e94fdf8ccdc3a927a4534b88b937a101 | |
parent | f5edd71e4527d25575ad934f57f2cdbdd2db2b19 [diff] |
Small fixes for Mojo docs Change-Id: I5c9b07a3252a6cc3c303c8da3ccd2252be72d242 Reviewed-on: https://chromium-review.googlesource.com/1158717 Commit-Queue: Tom McKee <[email protected]> Reviewed-by: Scott Violet <[email protected]> Cr-Commit-Position: refs/heads/master@{#580221}
diff --git a/mojo/public/cpp/bindings/README.md b/mojo/public/cpp/bindings/README.md index 89e5d95..5630adb1 100644 --- a/mojo/public/cpp/bindings/README.md +++ b/mojo/public/cpp/bindings/README.md
@@ -669,7 +669,7 @@ ```cpp union Value { int64 int_value; - float32 float_value; + float float_value; string string_value; }; @@ -678,12 +678,17 @@ }; ``` -This generates a the following C++ interface: +This generates the following C++ interface: ```cpp class Value { public: - virtual ~Value() {} + ~Value() {} +}; + +class Dictionary { + public: + virtual ~Dictionary() {} virtual void AddValue(const std::string& key, ValuePtr value) = 0; };