Skip to content

Commit eb41060

Browse files
committed
Rollup merge of #30720 - BChip:patch-1, r=steveklabnik
Declare what LIFO stands for
2 parents 23c88ff + 7d6d39b commit eb41060

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/book/the-stack-and-the-heap.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ instead.
539539
# Which to use?
540540

541541
So if the stack is faster and easier to manage, why do we need the heap? A big
542-
reason is that Stack-allocation alone means you only have LIFO semantics for
542+
reason is that Stack-allocation alone means you only have 'Last In First Out (LIFO)' semantics for
543543
reclaiming storage. Heap-allocation is strictly more general, allowing storage
544544
to be taken from and returned to the pool in arbitrary order, but at a
545545
complexity cost.

0 commit comments

Comments
 (0)