[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v2 2/3] golang/xenlight: Ensure comments aren't interpreted as docstrings
On Fri, Apr 19, 2024 at 10:00 AM George Dunlap <george.dunlap@xxxxxxxxx> wrote: > > Go has always interpreted a comment directly before a function as a > docstring, so having the C function prototypes which the golang method > is meant to wrap in the comment before was always a bit non-standard. > However, recent versions of `go fmt` now attempt to normalize these > docstrings as well, leading to strange changes, particularly if `go > fmt` is run on save. > > Go through and put a space between non-docstring comments and methods, > so that `go fmt` leaves the comments alone. > > No functional change. > > Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxx> Acked-by: Nick Rosbrook <rosbrookn@xxxxxxxxx> Thanks, Nick
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |