update a doc block