mirror of
https://github.com/pion/stun.git
synced 2025-10-28 10:01:42 +08:00
docs: fix example hint
This commit is contained in:
@@ -635,7 +635,7 @@ func ExampleMessage() {
|
||||
Fingerprint,
|
||||
)
|
||||
// Instead of calling Build, use AddTo(m) directly for all setters
|
||||
// that are available before.
|
||||
// to reduce allocations.
|
||||
// For example:
|
||||
// software := NewSoftware("ernado/stun")
|
||||
// software.AddTo(m) // no allocations
|
||||
|
||||
Reference in New Issue
Block a user