diff --git a/components/sections/flattening/content.en-GB.md b/components/sections/flattening/content.en-GB.md index c1feb622..2c345935 100644 --- a/components/sections/flattening/content.en-GB.md +++ b/components/sections/flattening/content.en-GB.md @@ -30,11 +30,11 @@ And done, that's the algorithm implemented. That just leaves drawing the resulti ``` function drawFlattenedCurve(curve, segmentCount): coordinates = flattenCurve(curve, segmentCount) - coord = coordinates[0], _coords; + coord = coordinates[0], _coord; for(i=1; i < coordinates.length; i++): - _coords = coordinates[i] - line(coords, _coords) - coords = _coords + _coord = coordinates[i] + line(coord, _coord) + coord = _coord ``` We start with the first coordinate as reference point, and then just draw lines between each point and its next point.