When you copy code from the documentation, it sometimes doesn't copy as plain text but copies as a hyperlink to the documentation. That is why you are seeing RefLink. At some point you copied the name of the function from the documentation center and didn't copy it as plaintext.
I would take the code and trying copying it all by right clicking and selecting "Copy as > PlainText"