diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-02-20 17:07:17 -0800 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-02-20 21:14:20 -0800 |
| commit | bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6 (patch) | |
| tree | d321d9cab209f002e4236afd09d5d12fd640acc7 /src/libcore/util.rs | |
| parent | a307608781027d8c1b4c99bf1a8ac2c0d960a1bc (diff) | |
| download | rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.tar.gz rust-bf2a225c0b6f90f61bcaf4a6f33d9eaf424795b6.zip | |
librustc: Separate most trait bounds with '+'. rs=plussing
Diffstat (limited to 'src/libcore/util.rs')
| -rw-r--r-- | src/libcore/util.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/util.rs b/src/libcore/util.rs index eea172a43ce..629c4a3291c 100644 --- a/src/libcore/util.rs +++ b/src/libcore/util.rs @@ -28,7 +28,7 @@ pub pure fn ignore<T>(_x: T) { } /// Sets `*ptr` to `new_value`, invokes `op()`, and then restores the /// original value of `*ptr`. #[inline(always)] -pub fn with<T: Copy, R>( +pub fn with<T:Copy,R>( ptr: &mut T, new_value: T, op: &fn() -> R) -> R |
