Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5030133ybi; Tue, 11 Jun 2019 17:44:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwG3Te2CVjTquEcBaXYMCsEtrKOXWkVfXJv+D3fPrbkNb/cjDT+OgFhCc5t6tgITAXl2yZ/ X-Received: by 2002:a17:902:934a:: with SMTP id g10mr68148051plp.18.1560300290659; Tue, 11 Jun 2019 17:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560300290; cv=none; d=google.com; s=arc-20160816; b=zmdkDp6zKQkjqWdhh7qJbWlcmwL+ZHQO6ckCSv23P667TF+5VqYg3w21hRSwO2A9o9 Jy1Vcz1IsaMYc8xSZ7IhK9VBqbji+T84OuZZZivnJ4O56UnJKPV3uHyRQsE9MQEz7bkN or9sT1zjw680ME4jKqaq0QzwL6y92Sd+ZTijwNR0IyXVLtQTwNRh/OmsPPudDp3w35u5 rLQXmnEfkIvDwds7liWt2w7ZbYG1XWqrdFB48swAguvfOHlgijOxOtZTAFVLmZeL/0qq XSH+lOVa/P6dxRIWJj2sBi3B7UXsDWSwVlBW64fY7qVFcJ13NqOzoRenGar4irw2uR/8 RapQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=OWwwq7F0XUb3YdXXRGxDyx4fbgw1apEpwsa/2uneB+g=; b=Xkc8P37ozDRXcA6nUA5fdQtx5g+jp9YAI5sHhMavCIvO/VJKAcp/4sOayFhFpoMojR 6AmM0kwgYYlCqKwiy37CpEVil67j6ElbE5aNdXScmp8K6sh6wUlNPwMAge+PF+f2gfHt wi8bsGXlXMuo7J394NQZs8DZRRfCGU9DCNxCc9ZSsEjYsATbq2TvSKxrebSD5/TxvzIg c6YrnYw1nHAmRj2mBS996Y4QNOdrPCiLMowrNQGb+wXmtpjOVUwFX6L1ymSh2T2EK9i9 ttmPm+GesRYBgWAc5YqIXklJUpCzCH5IE1Q0WTmjk+JjGUHUT2NOlZKO8XkDXb/a0Y/e 4VKw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32si14087283plb.86.2019.06.11.17.44.35; Tue, 11 Jun 2019 17:44:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405889AbfFKUEO (ORCPT + 99 others); Tue, 11 Jun 2019 16:04:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:40372 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405706AbfFKUEN (ORCPT ); Tue, 11 Jun 2019 16:04:13 -0400 Received: from turingmachine.home (unknown [IPv6:2804:431:d719:d9b5:d711:794d:1c68:5ed3]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: tonyk) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 79C902854A0; Tue, 11 Jun 2019 21:04:10 +0100 (BST) From: =?UTF-8?q?Andr=C3=A9=20Almeida?= To: linux-doc@vger.kernel.org Cc: linux-kernel@vger.kernel.org, corbet@lwn.net, kernel@collabora.com, =?UTF-8?q?Andr=C3=A9=20Almeida?= Subject: [PATCH] sphinx.rst: Add note about code snippets embedded in the text Date: Tue, 11 Jun 2019 17:03:16 -0300 Message-Id: <20190611200316.30054-1-andrealmeid@collabora.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There's a paragraph that explains how to create fixed width text block, but it doesn't explains how to create fixed width text inline, although this feature is really used through the documentation. Fix that adding a quick note about it. Signed-off-by: André Almeida --- Documentation/doc-guide/sphinx.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/doc-guide/sphinx.rst b/Documentation/doc-guide/sphinx.rst index c039224b404e..f48abc07f4c5 100644 --- a/Documentation/doc-guide/sphinx.rst +++ b/Documentation/doc-guide/sphinx.rst @@ -218,7 +218,7 @@ Here are some specific guidelines for the kernel documentation: examples, etc.), use ``::`` for anything that doesn't really benefit from syntax highlighting, especially short snippets. Use ``.. code-block:: `` for longer code blocks that benefit - from highlighting. + from highlighting. For a short snippet of code embedded in the text, use \`\`. the C domain -- 2.22.0