File tree 2 files changed +10
-10
lines changed
2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -193,11 +193,11 @@ impl f32 {
193
193
}
194
194
195
195
/// Returns a number composed of the magnitude of `self` and the sign of
196
- /// `y `.
196
+ /// `sign `.
197
197
///
198
- /// Equal to `self` if the sign of `self` and `y ` are the same, otherwise
198
+ /// Equal to `self` if the sign of `self` and `sign ` are the same, otherwise
199
199
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
200
- /// `y ` is returned.
200
+ /// `sign ` is returned.
201
201
///
202
202
/// # Examples
203
203
///
@@ -216,8 +216,8 @@ impl f32 {
216
216
#[ inline]
217
217
#[ must_use]
218
218
#[ stable( feature = "copysign" , since = "1.35.0" ) ]
219
- pub fn copysign ( self , y : f32 ) -> f32 {
220
- unsafe { intrinsics:: copysignf32 ( self , y ) }
219
+ pub fn copysign ( self , sign : f32 ) -> f32 {
220
+ unsafe { intrinsics:: copysignf32 ( self , sign ) }
221
221
}
222
222
223
223
/// Fused multiply-add. Computes `(self * a) + b` with only one rounding
Original file line number Diff line number Diff line change @@ -171,11 +171,11 @@ impl f64 {
171
171
}
172
172
173
173
/// Returns a number composed of the magnitude of `self` and the sign of
174
- /// `y `.
174
+ /// `sign `.
175
175
///
176
- /// Equal to `self` if the sign of `self` and `y ` are the same, otherwise
176
+ /// Equal to `self` if the sign of `self` and `sign ` are the same, otherwise
177
177
/// equal to `-self`. If `self` is a `NAN`, then a `NAN` with the sign of
178
- /// `y ` is returned.
178
+ /// `sign ` is returned.
179
179
///
180
180
/// # Examples
181
181
///
@@ -194,8 +194,8 @@ impl f64 {
194
194
#[ inline]
195
195
#[ must_use]
196
196
#[ stable( feature = "copysign" , since = "1.35.0" ) ]
197
- pub fn copysign ( self , y : f64 ) -> f64 {
198
- unsafe { intrinsics:: copysignf64 ( self , y ) }
197
+ pub fn copysign ( self , sign : f64 ) -> f64 {
198
+ unsafe { intrinsics:: copysignf64 ( self , sign ) }
199
199
}
200
200
201
201
/// Fused multiply-add. Computes `(self * a) + b` with only one rounding
You can’t perform that action at this time.
0 commit comments