You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Handling of doc comments that should not be merged is a bit wrong.
First problem:
/** one *//** two */letv = 1
...gives an empty doc comment. Per the intent of the code it should give ‘two’. (Maybe someone wants to argue for changing to ‘one two’ but empty has to be wrong.)
Second problem:
/// one/// twoletw =1
...gives a doc comment of ‘one two’. Changing the spacing to two blank lines gives an empty doc comment again.
I’ll try a PR to fix both parts. I’m conscious that code might be using the second behavior today - the two instances I found in swift though look as though they would be better without merging: swiftpmswift/stdlib
The text was updated successfully, but these errors were encountered:
These are all marginally improved by fixing /// merging; there are no places intentionally taking advantage of it. Scanning a handful of open source projects turned up one hit, another 'MARK' typo.
Environment
Xcode 9.2
Additional Detail from JIRA
md5: 0e37b8ffa8a381dbc5e9566da25b0955
Issue Description:
Handling of doc comments that should not be merged is a bit wrong.
First problem:
...gives an empty doc comment. Per the intent of the code it should give ‘two’. (Maybe someone wants to argue for changing to ‘one two’ but empty has to be wrong.)
Second problem:
...gives a doc comment of ‘one two’. Changing the spacing to two blank lines gives an empty doc comment again.
I’ll try a PR to fix both parts. I’m conscious that code might be using the second behavior today - the two instances I found in swift though look as though they would be better without merging:
swiftpm swift/stdlib
The text was updated successfully, but these errors were encountered: