Commit 0ccf6420 authored by Johann Koenig's avatar Johann Koenig Committed by Commit Bot

[docs] typo in GC API reference

The GarbageCollected<> template takes the class name as a parameter.

Change-Id: I118947d646c97c84534b218820af9b2c7e0a60db
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2531840
Auto-Submit: Johann Koenig <johannkoenig@google.com>
Commit-Queue: Kouhei Ueno <kouhei@chromium.org>
Reviewed-by: default avatarKouhei Ueno <kouhei@chromium.org>
Cr-Commit-Position: refs/heads/master@{#826749}
parent d77a881b
......@@ -239,7 +239,7 @@ It may take some time for the pointer in a `WeakMember<T>` to become `nullptr` a
because this rewrite is only done within Blink GC's garbage collection period.
```c++
class SomeGarbageCollectedClass : public GarbageCollected<GarbageCollectedSomething> {
class SomeGarbageCollectedClass : public GarbageCollected<SomeGarbageCollectedClass> {
...
private:
Member<AnotherGarbageCollectedClass> another_; // OK, retained by Member<T>.
......
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