about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authormcarton <cartonmartin+git@gmail.com>2016-01-18 13:09:46 +0100
committermcarton <cartonmartin+git@gmail.com>2016-01-18 13:09:46 +0100
commit90cbc858e983e302d97f2bd72be7af9a94def51a (patch)
treed807131f52f5764999b37ecc317a8e3e999bd918 /src
parentc6604bb281d6f8ca77c33f15e67a26e0ceeb95a3 (diff)
downloadrust-90cbc858e983e302d97f2bd72be7af9a94def51a.tar.gz
rust-90cbc858e983e302d97f2bd72be7af9a94def51a.zip
Fix spelling mistake
Diffstat (limited to 'src')
-rw-r--r--src/consts.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/consts.rs b/src/consts.rs
index 171ba6f27f0..36191993474 100644
--- a/src/consts.rs
+++ b/src/consts.rs
@@ -484,7 +484,7 @@ impl<'c, 'cc> ConstEvalLateContext<'c, 'cc> {
             if let Some(&PathResolution { base_def: DefConst(id), ..}) = lcx.tcx.def_map.borrow().get(&e.id) {
                 maybe_id = Some(id);
             }
-            // separate if lets to avoid doubleborrowing the defmap
+            // separate if lets to avoid double borrowing the def_map
             if let Some(id) = maybe_id {
                 if let Some(const_expr) = lookup_const_by_id(lcx.tcx, id, None) {
                     let ret = self.expr(const_expr);