That just makes a round doughnut. I want to make square ones. Scroll down the web page to see what can be done.

By the way, your object looks better when you specify facets (I picked 75 out of the blue.)

$fn = 75;
rotate_extrude(convexity = 10)
translate([2, 0, 0])
circle(r = 1);