The famous investor advocated for investing in low-cost index funds.