Fixed typo in AMD documentation

Even though it was explained in the text, the code fragment below was not correct.