Skip to content

Commit d18b611

Browse files
committed
Fix code snippet by adding forced unwrapping
1 parent 6894b2e commit d18b611

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Linked List/README.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ If you don't have a reference to the node, you can use `removeLast()` or `remove
408408
public func removeAtIndex(index: Int) -> T {
409409
let node = nodeAtIndex(index)
410410
assert(node != nil)
411-
return removeNode(node)
411+
return removeNode(node!)
412412
}
413413
```
414414

0 commit comments

Comments
 (0)