Skip to content

Commit c498140

Browse files
StyleRef: Refer to Into<StyleRef>, not DrawRef (#153)
1 parent c367dde commit c498140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/style.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ impl From<Stroke> for Style {
5858
/// Reference to a [draw style](Style).
5959
///
6060
/// This is useful for methods that would like to accept draw styles by reference. Defining
61-
/// the type as `impl<Into<DrawRef>>` allows accepting types like `&Stroke` or `Fill`
61+
/// the type as `impl<Into<StyleRef>>` allows accepting types like `&Stroke` or `Fill`
6262
/// directly without cloning or allocating.
6363
#[derive(Debug, Copy, Clone)]
6464
pub enum StyleRef<'a> {

0 commit comments

Comments
 (0)