Skip to content

Commit 3a5ca9c

Browse files
committed
Fix documentation.
1 parent ce6482d commit 3a5ca9c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

crates/egui/src/widgets/drag_value.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ impl<'a> DragValue<'a> {
249249
/// If `twos_complement` is true, negative values will be displayed as the 2's complement representation. Otherwise
250250
/// they will be prefixed with a '-' sign.
251251
///
252-
/// See also: [`binary_uint`]
252+
/// See also: [`binary`]
253253
///
254254
/// # Panics
255255
///
@@ -286,7 +286,7 @@ impl<'a> DragValue<'a> {
286286
/// If `twos_complement` is true, negative values will be displayed as the 2's complement representation. Otherwise
287287
/// they will be prefixed with a '-' sign.
288288
///
289-
/// See also: [`octal_uint`]
289+
/// See also: [`octal`]
290290
///
291291
/// # Panics
292292
///
@@ -301,7 +301,7 @@ impl<'a> DragValue<'a> {
301301
pub fn octal(self, min_width: usize, twos_complement: bool) -> Self {
302302
assert!(
303303
min_width > 0,
304-
"DragValue::octal_int: `min_width` must be greater than 0"
304+
"DragValue::octal: `min_width` must be greater than 0"
305305
);
306306
if twos_complement {
307307
self.custom_formatter(move |n, _| format!("{:0>min_width$o}", n as i64))
@@ -323,7 +323,7 @@ impl<'a> DragValue<'a> {
323323
/// If `twos_complement` is true, negative values will be displayed as the 2's complement representation. Otherwise
324324
/// they will be prefixed with a '-' sign.
325325
///
326-
/// See also: [`hexadecinal_uint`]
326+
/// See also: [`hexadecimal`]
327327
///
328328
/// # Panics
329329
///

crates/egui/src/widgets/slider.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ impl<'a> Slider<'a> {
344344
/// If `twos_complement` is true, negative values will be displayed as the 2's complement representation. Otherwise
345345
/// they will be prefixed with a '-' sign.
346346
///
347-
/// See also: [`binary_uint`]
347+
/// See also: [`binary`]
348348
///
349349
/// # Panics
350350
///
@@ -381,7 +381,7 @@ impl<'a> Slider<'a> {
381381
/// If `twos_complement` is true, negative values will be displayed as the 2's complement representation. Otherwise
382382
/// they will be prefixed with a '-' sign.
383383
///
384-
/// See also: [`octal_uint`]
384+
/// See also: [`octal`]
385385
///
386386
/// # Panics
387387
///
@@ -396,7 +396,7 @@ impl<'a> Slider<'a> {
396396
pub fn octal(self, min_width: usize, twos_complement: bool) -> Self {
397397
assert!(
398398
min_width > 0,
399-
"Slider::octal_int: `min_width` must be greater than 0"
399+
"Slider::octal: `min_width` must be greater than 0"
400400
);
401401
if twos_complement {
402402
self.custom_formatter(move |n, _| format!("{:0>min_width$o}", n as i64))
@@ -418,7 +418,7 @@ impl<'a> Slider<'a> {
418418
/// If `twos_complement` is true, negative values will be displayed as the 2's complement representation. Otherwise
419419
/// they will be prefixed with a '-' sign.
420420
///
421-
/// See also: [`hexadecinal_uint`]
421+
/// See also: [`hexadecimal`]
422422
///
423423
/// # Panics
424424
///

0 commit comments

Comments
 (0)