How do I cut or trim off the protruding line drawn using a pen tool so that it confirms the shape of the rectangle?
- Select both the rectangle and inner shape
- Grab the Shape Builder Tool
- Hold down the Option/Alt key
- Click-drag across the part of the line you want to remove.