Skip to content

Commit 528c7f5

Browse files
authored
NFC: fix typo in BumpPtrAllocator.swift (#1152)
`GLOWTH_DELAY` -> `GROWTH_DELAY`
1 parent 13a6e7a commit 528c7f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SwiftSyntax/BumpPtrAllocator.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
public class BumpPtrAllocator {
1616
typealias Slab = UnsafeMutableRawBufferPointer
1717

18-
static private var GLOWTH_DELAY: Int = 128
18+
static private var GROWTH_DELAY: Int = 128
1919
static private var SLAB_ALIGNMENT: Int = 8
2020

2121
/// Initial slab size.
@@ -54,8 +54,8 @@ public class BumpPtrAllocator {
5454

5555
/// Calculate the size of the slab at the index.
5656
private func slabSize(at index: Int) -> Int {
57-
// Double the slab size every 'GLOWTH_DELAY' slabs.
58-
return self.slabSize * (1 << min(30, index / Self.GLOWTH_DELAY))
57+
// Double the slab size every 'GROWTH_DELAY' slabs.
58+
return self.slabSize * (1 << min(30, index / Self.GROWTH_DELAY))
5959
}
6060

6161
private func startNewSlab() {

0 commit comments

Comments
 (0)