From 48a530218cf5be2cf9530a752a514041a754a4e3 Mon Sep 17 00:00:00 2001 From: Marco Ieni <11428655+MarcoIeni@users.noreply.github.com> Date: Wed, 6 Jan 2021 15:04:40 +0100 Subject: [PATCH] markdownlint: fix md004 (#175) * markdownlint: fix md004 * use `-` for lists Co-authored-by: simonsan <14062932+simonsan@users.noreply.github.com> --- .markdownlint.yaml | 1 - patterns/newtype.md | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.markdownlint.yaml b/.markdownlint.yaml index 9f35722..87a22d6 100644 --- a/.markdownlint.yaml +++ b/.markdownlint.yaml @@ -1,5 +1,4 @@ --- -MD004: false MD010: code_blocks: false MD013: diff --git a/patterns/newtype.md b/patterns/newtype.md index 5e12764..8eadde3 100644 --- a/patterns/newtype.md +++ b/patterns/newtype.md @@ -86,9 +86,9 @@ the wrapper type. Newtypes are very common in Rust code. Abstraction or representing units are the most common uses, but they can be used for other reasons: -* restricting functionality (reduce the functions exposed or traits implemented), -* making a type with copy semantics have move semantics, -* abstraction by providing a more concrete type and thus hiding internal types, e.g., +- restricting functionality (reduce the functions exposed or traits implemented), +- making a type with copy semantics have move semantics, +- abstraction by providing a more concrete type and thus hiding internal types, e.g., ```rust,ignore pub struct Foo(Bar);