diff options
| author | bors <bors@rust-lang.org> | 2013-04-21 12:54:51 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-04-21 12:54:51 -0700 |
| commit | 6a31525c50fc5f2e2ad63bf30ec80c1279bf1fe4 (patch) | |
| tree | 5d5efc584aa00328b3df8fc6eecefb5532c19ac8 /src/etc/vim/syntax/rust.vim | |
| parent | 535244cde4640986f29978c5f9c35fd3b40f58db (diff) | |
| parent | 01eb5e8ad39a57e9fc31569983c1b9d5905a7e58 (diff) | |
auto merge of #5990 : bjz/rust/rem-quot, r=catamorphism
This renaming, proposed in the [Numeric Bikeshed](https://github.com/mozilla/rust/wiki/Bikeshed-Numeric-Traits#rename-modulo-into-rem-or-remainder-in-traits-and-docs), will allow us to implement div and and modulo methods that follow the conventional mathematical definitions for negative numbers without altering the definitions of the operators (and confusing systems programmers). Here is a useful answer on StackOverflow that explains the difference between `div`/`mod` and `quot`/`rem` in Haskell: (When is the difference between quotRem and divMod useful?)[http://stackoverflow.com/a/339823/679485]. This is part of the numeric trait reforms tracked in issue #4819.
Diffstat (limited to 'src/etc/vim/syntax/rust.vim')
| -rw-r--r-- | src/etc/vim/syntax/rust.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/etc/vim/syntax/rust.vim b/src/etc/vim/syntax/rust.vim index 3e6c11c6238..eab3627ae16 100644 --- a/src/etc/vim/syntax/rust.vim +++ b/src/etc/vim/syntax/rust.vim @@ -46,7 +46,7 @@ syn keyword rustType off_t dev_t ino_t pid_t mode_t ssize_t syn keyword rustTrait Const Copy Send Owned " inherent traits syn keyword rustTrait Eq Ord Num Ptr -syn keyword rustTrait Drop Add Sub Mul Div Modulo Neg BitAnd BitOr +syn keyword rustTrait Drop Add Sub Mul Quot Rem Neg BitAnd BitOr syn keyword rustTrait BitXor Shl Shr Index syn keyword rustSelf self |
