How do You Stop Breastfeeding?

To stop breastfeeding I just decided I wasn’t going to do it anymore. I bought formula and bottles ahead of time. When my son would cry for his milk I gave him the bottle. He accepted it easily!