It was written by McCartney , though credited to Lennon-McCartney .
It was written by McCartney , though the songwriting credit is Lennon\/McCartney .