def fix_invalid_type_parameter(dom):
<EOL>placeterm_tag = dom.match(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>",<EOL>["<STR_LIT>", {"<STR_LIT>": "<STR_LIT>"}]<EOL>)<EOL>if placeterm_tag:<EOL><INDENT>first(placeterm_tag).params["<STR_LIT:type>"] = "<STR_LIT:code>"<EOL><DEDENT>
"Make sure that ``<mods:placeTerm>`` has ``type="code"`` attribute.