James defines a line segment as "a portion of a line." His statement is not precise enough because he should specify that

the segment includes every point on the line
the segment can be part of a ray
the segment continues forever in both directions
the segment has two endpoints

The segment has two endpoints.