Yes, I think its the description you understand differently. with good reason imo.
look at the other one:
“The Spring Joint 2D component allows two Sprite objects controlled by rigidbody physics to be attached together as if by a spring. The spring will apply a force along its axis between the two objects, attempting to keep them a certain distance apart.”
I’ve run into the same discrepancy between the description and actual behaviour of DistanceJoint2D. It’s behaving like what I’d expect from the slider joint.
My current workaround: use SpringJoint2D, set Frequency to 0. this keeps the joint objects at a fixed distance without any elasticity of the link.
In new version of Unity they added option of Auto Configure Distance. that is the reason
Just Disable Auto Configure Distance in Spring Joint 2D component and its DONE
,Just DisableAuto Configure Distance in Spring joint 2D and its DONE