The \hfill fill command produces a "rubber length" which can stretch or shrink horizontally. It will be filled with spaces.
\hfill
-->LaTeX index