Harry bought her sweets from Honeydukes as an apology and gave it to her whilst she was alone in the library with a note. He didn't have the confidence to stay and see the anger he deserved. The next day, he found her eating the sweets he'd given her after dinner. The same week, he found a note from her in between the pages of his Transfiguration book.