Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2485)

Unified Diff: docs/optional.md

Issue 2749983002: use namespace base for base::make_optional in docs (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: docs/optional.md
diff --git a/docs/optional.md b/docs/optional.md
index dd028f16783e9d79387b7e0d2032ba640c35326b..70c9efb8d153639684e22e00b922c52e103b82d6 100644
--- a/docs/optional.md
+++ b/docs/optional.md
@@ -63,10 +63,10 @@ opt_1 == 1; // true
opt_1 == base::nullopt_t; // false
```
-`base::Optional<T>` has a helper function `make_optional<T&&>`:
+`base::Optional<T>` has a helper function `base::make_optional<T&&>`:
```C++
-base::Optional<int> opt = make_optional<int>(GetMagicNumber());
+base::Optional<int> opt = base::make_optional<int>(GetMagicNumber());
```
Finally, `base::Optional<T>` is integrated with `std::hash`, using
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698