The title of the article is “How to not RIIR”, not “How not to RIIR”. The article is about wrapping an API with a Rust interface so the title used here on HN does not fit the content of the article.
So, an article titled, say, "how not to paint your house" would be expected to outline things to avoid when painting your house, and "how to not paint your house" could just be "go for a bike ride instead."
'How not to x' articles are typically self-deprecating articles that do x, but are critical of how they approached it and lessons learnt
'How to not x' is more explicit, i.e. How to avoid doing x