MCPcopy Create free account
hub / github.com/arcjet/gravity / comment

Function comment

cmd/gravity/src/go/comment.rs:26–32  ·  view source on GitHub ↗

Helper function to create a Go comment.

(comment: T)

Source from the content-addressed store, hash-verified

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

Callers 1

test_commentFunction · 0.85

Calls 1

CommentClass · 0.85

Tested by 1

test_commentFunction · 0.68