diff options
| author | Gareth Daniel Smith <garethdanielsmith@gmail.com> | 2012-07-04 22:53:12 +0100 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-07-04 19:18:13 -0700 |
| commit | be0141666dd12316034499db12ee9fcf9ba648dd (patch) | |
| tree | 7d4c985a73e9a85de0e6c1bf2beeed44ebbd0102 /src/libsyntax/parse/prec.rs | |
| parent | bfa43ca3011bd1296cb1797ad3ea1c5dc4056749 (diff) | |
| download | rust-be0141666dd12316034499db12ee9fcf9ba648dd.tar.gz rust-be0141666dd12316034499db12ee9fcf9ba648dd.zip | |
convert doc-attributes to doc-comments using ./src/etc/sugarise-doc-comments.py (and manually tweaking) - for issue #2498
Diffstat (limited to 'src/libsyntax/parse/prec.rs')
| -rw-r--r-- | src/libsyntax/parse/prec.rs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/libsyntax/parse/prec.rs b/src/libsyntax/parse/prec.rs index e2e35447af3..8ea7306e180 100644 --- a/src/libsyntax/parse/prec.rs +++ b/src/libsyntax/parse/prec.rs @@ -6,17 +6,19 @@ import token::*; import token::token; import ast::*; -#[doc = "Unary operators have higher precedence than binary"] +/// Unary operators have higher precedence than binary const unop_prec: uint = 100u; -#[doc = " -Precedence of the `as` operator, which is a binary operator -but is not represented in the precedence table. -"] +/** + * Precedence of the `as` operator, which is a binary operator + * but is not represented in the precedence table. + */ const as_prec: uint = 11u; -#[doc = "Maps a token to a record specifying the corresponding binary - operator and its precedence"] +/** + * Maps a token to a record specifying the corresponding binary + * operator and its precedence + */ fn token_to_binop(tok: token) -> option<ast::binop> { alt tok { BINOP(STAR) { some(mul) } |
