From 4703e7941a1b04da2f904ed8d7be92ad25516433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Figueira?= Date: Mon, 17 Jun 2024 12:10:19 +0200 Subject: [PATCH] Fixed missing '&' for inout parameter in Docs Updated the emit call to pass the buffer as an inout parameter using &buffer. --- Sources/Prometheus/Docs.docc/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Prometheus/Docs.docc/index.md b/Sources/Prometheus/Docs.docc/index.md index 19329c2..ea3f0f1 100644 --- a/Sources/Prometheus/Docs.docc/index.md +++ b/Sources/Prometheus/Docs.docc/index.md @@ -60,7 +60,7 @@ text representation: ```swift var buffer = [UInt8]() buffer.reserveCapacity(1024) // potentially smart moves to reduce the number of reallocations -registry.emit(into: buffer) +registry.emit(into: &buffer) print(String(decoding: buffer, as: Unicode.UTF8.self)) ```