You should prefer using the overload of createWriterFor which takes the channelLayout as an AudioChannelSet to be more explicit.
WavAudioFormat::createWriterFor actually doesnāt have its own documentation, but āinheritsā the documentation from AudioFormat::createWriterFor, which it implements. I guess that documentation should be updated a bit.
It goes even further back, 2011 it was extended to four formats: mono / stereo / 5.0 / 5.1
And was touched in the meantime another time to add more formatsā¦
If the OP wants to find out such things: Clicking on āBlameā is a great function in git
It is indeed the right way to go about this. What is mentioned on the README means that the JUCE team wonāt merge your pull request directly, but they do welcome patches!