You copied a line exactly from the docs, and 44 seconds later someone else copies a line from the docs.
What often happens in these cases is you both viewed the question at about the same time, started writing your answers, and posted within a minute or two of each other. They did not copy your answer and re-post it, they just had the same idea as you - copying from the manual.
If you frequently copy from other sources, you are frequently going to run into the problem where others give the same answer.
Consider expanding your answer with more explanation, or customizing it more to their situation.
I don't have much sympathy for people who do the minimum amount of work to copy another reference line to stack overflow, then complain when others have the same unoriginal idea. I'm sure it's helpful to the OP, but there's no need to punish someone who simply did what you did.
Check the timestamps. They did not copy your answer.
If you want to avoid this problem in the future, expand on your answer with original content. Personally I'm not a big fan of submitting answers that contain only links or exact copies of other references. I don't downvote them, but I don't upvote them either.