Change custom precedence to Option<NonZeroU8>.

This commit is contained in:
Stephen Chung
2020-12-26 17:42:19 +08:00
parent db9dcd1bcc
commit 0a35c4cb41
2 changed files with 11 additions and 5 deletions

View File

@@ -208,7 +208,7 @@ impl Engine {
/// * `parse` is the parsing function.
/// * `func` is the implementation function.
///
/// All custom keywords must be manually registered via [`register_custom_operator`][Engine::register_custom_operator].
/// All custom keywords must be manually registered via [`Engine::register_custom_operator`].
/// Otherwise, custom keywords won't be recognized.
pub fn register_custom_syntax_raw(
&mut self,