Fixes Issue 10869 - Ddoc outputted some function modifiers twice.
Merge pull request #2494 from AndrejMitrovic/Fix10869

Issue 10869 - Ddoc outputted some function modifiers twice.