Skip to content

Commit c44211e

Browse files
authored
Update how-to-marshal-structures-using-cpp-interop.md
Change "=" into "-"
1 parent 729875d commit c44211e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/dotnet/how-to-marshal-structures-using-cpp-interop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ double GetDistance(Location loc1, Location loc2) {
3838
printf_s(" loc2(%d,%d)\n", loc2.x, loc2.y);
3939

4040
double h = loc1.x - loc2.x;
41-
double v = loc1.y = loc2.y;
41+
double v = loc1.y - loc2.y;
4242
double dist = sqrt( pow(h,2) + pow(v,2) );
4343

4444
return dist;

0 commit comments

Comments
 (0)