Format interval notation in constructor docs as code