Helper function to create a Go comment.
(comment: T)
| 24 | |
| 25 | /// Helper function to create a Go comment. |
| 26 | pub fn comment<T>(comment: T) -> Comment<T> |
| 27 | where |
| 28 | T: IntoIterator, |
| 29 | T::Item: Into<ItemStr>, |
| 30 | { |
| 31 | Comment(comment) |
| 32 | } |
| 33 | |
| 34 | #[cfg(test)] |
| 35 | mod tests { |