Can i get a deduction or credit for using 529 distribution to pay my child's student loans?

I thought that I read that I could now use 529 funds to pay for student loans. I am the owner of the account for my son. I took a distribution and used it to pay off his student loan.