Typo in Threading docs

13 views
Skip to first unread message

Ilia K

unread,
Jul 1, 2015, 6:08:04 AM7/1/15
to chromium...@chromium.org
Hello,

Looks like I found a typo in Threading - Callback cancellation - Important notes about cancellation section:
class MyClass {
 
public:
 
// Owns |p|.
 
void DoSomething(AnotherClass* p) {
   
...
 
}
 
WeakPtr<MyClass> AsWeakPtr() {
   
return weak_factory_.GetWeakPtr();
 
}
 
private:
 
base::WeakPtrFactory<MyObject> weak_factory_;
};

I suppose that weak_factory_ should be of type base::WeakPtrFactory<MyCalss>.

Unfortunately I have no permissions to add a comment directly to that page.

Thanks,
Ilia

Anand

unread,
Jul 16, 2015, 11:31:09 PM7/16/15
to chromium...@chromium.org, ki....@gmail.com
Thanks, I've fixed the typo. If you see any more documentation issues, it's better to file a bug at crbug.com so it's more visible to developers.
Reply all
Reply to author
Forward
0 new messages