Skip to content

Commit d8252ae

Browse files
authored
Merge pull request #54 from frankmcsherry/patch-1
Improve example in README.md
2 parents d4f5683 + c65c966 commit d8252ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use gc::Gc;
3333

3434
#[derive(Trace, Finalize)]
3535
struct Foo {
36-
x: Gc<Foo>,
36+
x: Option<Gc<Foo>>,
3737
y: u8,
3838
// ...
3939
}
@@ -81,7 +81,7 @@ use bar::Baz;
8181

8282
#[derive(Trace, Finalize)]
8383
struct Foo {
84-
x: Gc<Foo>,
84+
x: Option<Gc<Foo>>,
8585
#[unsafe_ignore_trace]
8686
y: Baz, // we are assuming that `Baz` doesn't contain any `Gc` objects
8787
// ...

0 commit comments

Comments
 (0)