Googling for 'Uniqueness of modular multiplicative inverse' results in the following link very high on the result list(https://rniwa.com/2011-08-22/proof-uniqueness-of-multiplicative-inverse/).
I believe that the proof provided is wrong so I would like confirmation on that.
Also for a bit of discussion:
If this proof is actually wrong then reading up on such things on the internet is very inefficient. I am a beginner at number theory and that goes doubly for me as I consider such a proof to be correct at first glance and then I waste a lot of time trying to wrap my mind around an incorrect statement. How did the rest of you teach yourself a mathematical subject without such inefficiencies? I am self studying so internet is obviously the first thing I check for any deeper insight.
Since the mistake of the proof is discussed in the comments, I want to point out the mistake you made:
WRONG. The internet is the first thing one checks for superficial insight. For deeper insight, the thing to check is textbooks (some of which might be found on the internet), and for the deepest insight, you take a class, discuss matters with fellow students, T.A.'s and professors, and ultimately use your own reasoning, e.g. by doing the exercises a good textbook contains and a good lecturer gives you.
Now of course there are good resources on the internet. But there's also ... not so good resources. Looking at your link, I would immediately have my doubts about it; but that's because I have been through a decade of university math. You're not there. Which is why I can only strongly advise you to not just rely on googling. And not on blogs of non-professional mathematicians. You know what, not on blogs at all (of course Terry Tao's blog is probably trustworthy; but don't start there).
Look, even textbooks contain mistakes. Lecture notes more so. I consider myself a good calculus teacher, but rarely a lecture passes in which I do not notice a silly mistake or unclarity in my lecture notes -- something small and silly when I spot it, but maybe it made one student "waste" 15 minutes on it. Which is why it's good for them that they can ask me, and that I can point it out in the next lesson for everyone; all resources that a self-learner does not have.
The first sentence is correct. For the second one, well if you figured out the mistake, the time is not entirely wasted.
As said above, I first got a solid groundwork by attending university classes. Afterwards, I did self-learning when necessary by using reliable sources (textbooks if possible, more than one at a time if possible to see things from different angles and spot mistakes in one), and working through a lot of the exercises.