Skip to content

Commit

Permalink
Add missing in argument modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
jjonescz committed Oct 5, 2023
1 parent 77b84b2 commit f3cb77d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ public void ItemRef()
var builder = new ImmutableSegmentedList<int>.Builder(list);

ref readonly var safeRef = ref builder.ItemRef(1);
ref var unsafeRef = ref Unsafe.AsRef(safeRef);
ref var unsafeRef = ref Unsafe.AsRef(in safeRef);

Assert.Equal(2, builder.ItemRef(1));

Expand Down

0 comments on commit f3cb77d

Please sign in to comment.