Skip to content

Commit b791185

Browse files
committed
Missing syntax highlighting
1 parent c5b3ac9 commit b791185

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Huffman Coding/README.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ This is what the process looks like:
268268

269269
Now that we know how to build the compression tree from the frequency table, we can use it to compress the contents of an `NSData` object. Here is the code:
270270

271-
```
271+
```swift
272272
func compressData(data: NSData) -> NSData {
273273
countByteFrequency(data)
274274
buildTree()
@@ -296,7 +296,7 @@ Then it loops through the entire input and for each byte calls `traverseTree()`.
296296
297297
The interesting stuff happens in `traverseTree()`. This is a recursive method:
298298

299-
```
299+
```swift
300300
private func traverseTree(writer writer: BitWriter, nodeIndex h: Int, childIndex child: Int) {
301301
if tree[h].parent != -1 {
302302
traverseTree(writer: writer, nodeIndex: tree[h].parent, childIndex: h)

0 commit comments

Comments
 (0)