Commit 9d8cc918 authored by Pranjal Raihan's avatar Pranjal Raihan Committed by Facebook GitHub Bot

Fix wrong method name in DelayedInit documentation

Summary: This was forgotten in a refactor.

Reviewed By: Mizuchi

Differential Revision: D25903164

fbshipit-source-id: 419131987a886f0d8d057b5b04b012d1162e564d
parent 25ce99fc
...@@ -40,7 +40,7 @@ namespace folly { ...@@ -40,7 +40,7 @@ namespace folly {
* struct Foo { * struct Foo {
* Bar& bar() { * Bar& bar() {
* LargeState state; * LargeState state;
* return bar_.fetch_or_construct( * return bar_.try_emplace_with(
* [this, &state] { return computeBar(state); }); * [this, &state] { return computeBar(state); });
* } * }
* private: * private:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment