Skip to content

Commit 24c3874

Browse files
Fixed missing '&' for inout parameter in Docs (#114)
Updated the emit call to pass the buffer as an inout parameter using &buffer.
1 parent fb9f489 commit 24c3874

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Prometheus/Docs.docc/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ text representation:
6060
```swift
6161
var buffer = [UInt8]()
6262
buffer.reserveCapacity(1024) // potentially smart moves to reduce the number of reallocations
63-
registry.emit(into: buffer)
63+
registry.emit(into: &buffer)
6464

6565
print(String(decoding: buffer, as: Unicode.UTF8.self))
6666
```

0 commit comments

Comments
 (0)