diff --git a/crates/turbo-tasks/src/generics/index_map.rs b/crates/turbo-tasks/src/generics/index_map.rs index 865d599f7bcb8e..dd48c25b20316d 100644 --- a/crates/turbo-tasks/src/generics/index_map.rs +++ b/crates/turbo-tasks/src/generics/index_map.rs @@ -42,7 +42,7 @@ fn index_map_default() -> Vc, Vc<()>>> { impl ValueDefault for IndexMap, Vc> { fn value_default() -> Vc { - // Safety: `index_map_default` creates a None variant, which is a valid + // Safety: `index_map_default` creates an empty map, which is a valid // representation of any index set of `Vc`. unsafe { Vc::::from_repr(index_map_default()) } } diff --git a/crates/turbo-tasks/src/generics/index_set.rs b/crates/turbo-tasks/src/generics/index_set.rs index a41d7fcc85b787..7a777f3cd18461 100644 --- a/crates/turbo-tasks/src/generics/index_set.rs +++ b/crates/turbo-tasks/src/generics/index_set.rs @@ -42,7 +42,7 @@ fn index_set_default() -> Vc>> { impl ValueDefault for IndexSet> { fn value_default() -> Vc { - // Safety: `index_set_default` creates a None variant, which is a valid + // Safety: `index_set_default` creates an empty set, which is a valid // representation of any index set of `Vc`. unsafe { Vc::::from_repr(index_set_default()) } }