From 8a1cc2ca777b2d9190dae0acb660abd526679257 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Wed, 9 Mar 2022 13:51:52 +1100 Subject: [PATCH] Improve docs on ClassifyContext Improve docs on `ClassifyContext` by doing: - Separate brief doc line from the rest - Use uniform backticks on opcodes --- src/blockdata/opcodes.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blockdata/opcodes.rs b/src/blockdata/opcodes.rs index 8d5e767c..2a8e4b75 100644 --- a/src/blockdata/opcodes.rs +++ b/src/blockdata/opcodes.rs @@ -660,8 +660,10 @@ impl fmt::Debug for All { } -/// Classification context for the opcode. Some opcodes like `OP_RESERVED` -/// abort the script in [`ClassifyContext::Legacy`] context, but will act as OP_SUCCESS in tapscript +/// Classification context for the opcode. +/// +/// Some opcodes like `OP_RESERVED` abort the script in [`ClassifyContext::Legacy`] context, but +/// will act as `OP_SUCCESS` in tapscript. #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum ClassifyContext { /// Opcode used in tapscript context