about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorHuon Wilson <dbau.pp+github@gmail.com>2014-11-18 23:03:58 +1100
committerHuon Wilson <dbau.pp+github@gmail.com>2014-11-20 20:18:21 +1100
commit3f3b2d6b7ef68d3a3817804fa4dba849a74e6878 (patch)
tree836e0f14928c4a9022fd0c29311e25e7a818bbe3 /src/libstd
parent803aacd5aef78f90fdd06ae7653fc20eec224992 (diff)
downloadrust-3f3b2d6b7ef68d3a3817804fa4dba849a74e6878.tar.gz
rust-3f3b2d6b7ef68d3a3817804fa4dba849a74e6878.zip
Rename `col!` to `column!`.
This macro is very rarely used, so there is no need (and it is better)
for it to avoid the abbreviation.

Closes rust-lang/rfcs#467.

[breaking-change]
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/macros.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index 0c91542e5eb..b03890abcc8 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -552,17 +552,17 @@ pub mod builtin {
     /// A macro which expands to the column number on which it was invoked.
     ///
     /// The expanded expression has type `uint`, and the returned column is not
-    /// the invocation of the `col!()` macro itself, but rather the first macro
-    /// invocation leading up to the invocation of the `col!()` macro.
+    /// the invocation of the `column!()` macro itself, but rather the first macro
+    /// invocation leading up to the invocation of the `column!()` macro.
     ///
     /// # Example
     ///
     /// ```
-    /// let current_col = col!();
+    /// let current_col = column!();
     /// println!("defined on column: {}", current_col);
     /// ```
     #[macro_export]
-    macro_rules! col( () => ({ /* compiler built-in */ }) )
+    macro_rules! column( () => ({ /* compiler built-in */ }) )
 
     /// A macro which expands to the file name from which it was invoked.
     ///