Please add the argument "distinct" to the documentation of the aggregate-function "string_agg". It's used to omit any duplicates in the result string.
string_agg isn’t special in this regard so instead of cluttering up every function with distinct we instead choose to document it as a syntax feature of aggregate functions in general.