A solution to the equation of grain-boundary diffusion is obtained under conditions where migration of the diffusant from the boundaries into the grains is absent and the diffusion coefficient decreases with time from an increased value to a value characteristic of equilibrium grain boundaries. The specific features of the grain-boundary diffusion in nanocrystals are qualitatively analyzed in terms of this solution.