LM 317 has three terminals an in, out, adjust.
The in terminal is marked + , the adjust terminal is marked - , last is out terminal.
This circuit is used to make a constant current source for battery charger or fixed use device like a motor keeping rpm under load.