From 4bfc146ff80a351eaa50921592b93c441979ac41 Mon Sep 17 00:00:00 2001 From: Andrea Leopardi Date: Thu, 29 Feb 2024 11:13:15 +0100 Subject: [PATCH] Apply suggestions from code review --- lib/nimble_options/docs.ex | 2 +- test/nimble_options/docs_test.exs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nimble_options/docs.ex b/lib/nimble_options/docs.ex index 246c420..7febe50 100644 --- a/lib/nimble_options/docs.ex +++ b/lib/nimble_options/docs.ex @@ -80,7 +80,7 @@ defmodule NimbleOptions.Docs do defp get_deprecated_str(prev_str, schema) do space_concat( prev_str, - schema[:deprecated] && "This option is deprecated. #{String.trim(schema[:deprecated])}" + schema[:deprecated] && "*This option is deprecated. #{String.trim(schema[:deprecated])}*" ) end diff --git a/test/nimble_options/docs_test.exs b/test/nimble_options/docs_test.exs index 1d6f260..6747aae 100644 --- a/test/nimble_options/docs_test.exs +++ b/test/nimble_options/docs_test.exs @@ -243,7 +243,7 @@ defmodule NimbleOptions.DocsTest do ] docs = """ - * `:old` (`t:atom/0`) - This option is deprecated. Use `:new` instead. Old option. + * `:old` (`t:atom/0`) - *This option is deprecated. Use `:new` instead.* Old option. * `:new` (`t:String.t/0`) - New option.