Skip to content

Commit 20d03e6

Browse files
author
Colin Robertson
authored
Merge pull request #3593 from andrealu2012/patch-1
Update how-to-marshal-structures-using-cpp-interop.md
2 parents 027e83b + c44211e commit 20d03e6

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)