From 93d0b7c6465f4ffe220b3ddada729746b11eb6ce Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 16 Aug 2022 13:04:38 +0200 Subject: Update some last docs, bnf grammars --- src/construct/partial_bom.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/construct/partial_bom.rs') diff --git a/src/construct/partial_bom.rs b/src/construct/partial_bom.rs index 1818ef4..3f772e9 100644 --- a/src/construct/partial_bom.rs +++ b/src/construct/partial_bom.rs @@ -1,6 +1,17 @@ //! Byte order mark occurs at the start of the document. //! -//! It’s the three bytes 0xEF, 0xBB, and 0xBF. +//! ## Grammar +//! +//! Byte order mark forms with the following BNF +//! (see [construct][crate::construct] for character groups): +//! +//! ```bnf +//! byte_order_mark ::= 0xEF 0xBB 0xBF +//! ``` +//! +//! ## Recommendation +//! +//! Don’t use BOMs. //! //! ## Tokens //! -- cgit