about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBoris Egorov <egorov@linux.com>2015-10-07 22:44:17 +0600
committerBoris Egorov <egorov@linux.com>2015-10-07 23:41:20 +0600
commit2ba0c48b7975501bb220afe8dea4163de5d2187e (patch)
treefa74aa3fdab84718da3a281739c0589467fac305
parentc056cbbe05c4c9f59feffdc5c88609bed993b169 (diff)
trpl: Use ordered list to release user from counting
Later in text we mention 'step four' and 'step three'. This fix releases user
from counting.
-rw-r--r--src/doc/trpl/lifetimes.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/doc/trpl/lifetimes.md b/src/doc/trpl/lifetimes.md
index 4896be714bb..23569dd1b91 100644
--- a/src/doc/trpl/lifetimes.md
+++ b/src/doc/trpl/lifetimes.md
@@ -43,11 +43,11 @@ With that in mind, let’s learn about lifetimes.
 Lending out a reference to a resource that someone else owns can be
 complicated. For example, imagine this set of operations:
 
-- I acquire a handle to some kind of resource.
-- I lend you a reference to the resource.
-- I decide I’m done with the resource, and deallocate it, while you still have
+1. I acquire a handle to some kind of resource.
+2. I lend you a reference to the resource.
+3. I decide I’m done with the resource, and deallocate it, while you still have
   your reference.
-- You decide to use the resource.
+4. You decide to use the resource.
 
 Uh oh! Your reference is pointing to an invalid resource. This is called a
 dangling pointer or ‘use after free’, when the resource is memory.