Skip to content

Commit 46cda0d

Browse files
authored
Fixed allocations.md markup (#370)
* Fixed allocations.md markup * Review feedback: heading level * Revert gemfile.lock to main
1 parent 48f9bd1 commit 46cda0d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

server/guides/allocations.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,16 @@ After we have confirmed that our user probe on `malloc` works in general, let's
104104

105105
For example, we could analyse a program which does 10 subsequent HTTP requests using [AsyncHTTPClient](https://github.com/swift-server/async-http-client). If you're interested in the full source code, please expand below.
106106

107-
<details>
108-
<summary>Demo program source code</summary>
107+
### Demo program source code
109108

110109
With the following dependencies
111110

112111
```swift
113-
dependencies: [
114-
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.3.0"),
115-
.package(url: "https://github.com/apple/swift-nio.git", from: "2.29.0"),
116-
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.2"),
117-
],
112+
dependencies: [
113+
.package(url: "https://github.com/swift-server/async-http-client.git", from: "1.3.0"),
114+
.package(url: "https://github.com/apple/swift-nio.git", from: "2.29.0"),
115+
.package(url: "https://github.com/apple/swift-log.git", from: "1.4.2"),
116+
],
118117
```
119118

120119
We could write this program
@@ -178,7 +177,6 @@ MultiThreadedEventLoopGroup.withCurrentThreadAsEventLoop { eventLoop in
178177

179178
logger.info("exiting")
180179
```
181-
</details>
182180

183181
Assuming you have a program as a Swift package, we should first of all compile it in release mode using `swift build -c release`. Then you should find a binary called `.build/release/your-program-name` which we can then analyse.
184182

0 commit comments

Comments
 (0)