zeek/auxil/spicy/doc/programming/examples/_unit-params-string.spicy
Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

16 lines
274 B
Plaintext

# Automatically generated; edit in Sphinx source code, not here.
module Test;
type X = unit(s: string&) {
n: uint8 {
*s = "Hello, world!";
}
};
public type Y = unit {
x: X(self.s);
on %done { print self.s; }
var s: string& = new string;
};