about summary refs log tree commit diff
path: root/src/libsyntax_pos
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2018-02-14 22:30:15 +0900
committerSeiichi Uchida <seuchida@gmail.com>2018-02-18 00:10:40 +0900
commit291c51b9c8abe254216da4e954c5f6696a52da8f (patch)
tree21b9b74b40552cb09bf7648357f81660d0c37de4 /src/libsyntax_pos
parentb5099a708d67ed165c5ebcfc2c55b1cdf2ad86bc (diff)
downloadrust-291c51b9c8abe254216da4e954c5f6696a52da8f.tar.gz
rust-291c51b9c8abe254216da4e954c5f6696a52da8f.zip
Fix up tests and typos
Diffstat (limited to 'src/libsyntax_pos')
-rw-r--r--src/libsyntax_pos/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax_pos/lib.rs b/src/libsyntax_pos/lib.rs
index f9e01b630ae..0f6dbc39e21 100644
--- a/src/libsyntax_pos/lib.rs
+++ b/src/libsyntax_pos/lib.rs
@@ -219,7 +219,7 @@ impl Span {
     /// Returns a new span representing an empty span at the beginning of this span
     #[inline]
     pub fn empty(self) -> Span {
-        span.with_hi(self.lo())
+        self.with_hi(self.lo())
     }
 
     /// Returns `self` if `self` is not the dummy span, and `other` otherwise.