Is grating spacing the same thing as slit spacing . N = 1/d《~~~~~ this equation is for garting spacing. w= lamda*D/s 《~~~ slit spacing.
They’re for different things - grating spacing is for a diffraction grating, and slit spacing is for a double slit. Both refer to the distance between two slits.