Skip to content

Commit

Permalink
[TRIVIAL, DDOC] fix issue 16624 - setExtension ddoc comment is strang…
Browse files Browse the repository at this point in the history
…ely formated
  • Loading branch information
Basile Burg committed Nov 3, 2016
1 parent fd518eb commit 9d1fc07
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions std/path.d
Expand Up @@ -1008,15 +1008,10 @@ auto stripExtension(R)(auto ref R path)
}


/** Params:
path = A path name
ext = The new extension
/** Sets or replaces an extension.
Returns: A string containing the _path given by $(D path), but where
the extension has been set to $(D ext).
If the filename already has an extension, it is replaced. If not, the
extension is simply appended to the filename. Including a leading dot
If the filename already has an extension, it is replaced. If not, the
extension is simply appended to the filename. Including a leading dot
in $(D ext) is optional.
If the extension is empty, this function is equivalent to
Expand All @@ -1026,6 +1021,13 @@ auto stripExtension(R)(auto ref R path)
being the case when path is immutable and doesn't already have an
extension).
Params:
path = A path name
ext = The new extension
Returns: A string containing the _path given by $(D path), but where
the extension has been set to $(D ext).
See_Also:
$(LREF withExtension) which does not allocate and returns a lazy range.
*/
Expand Down

0 comments on commit 9d1fc07

Please sign in to comment.