From bae3685f63a62a3812b090c7120b36d4b3fe7059 Mon Sep 17 00:00:00 2001 From: xjd Date: Mon, 22 Apr 2024 11:25:19 +0800 Subject: [PATCH] Ignore on-chain script example to be compiled --- bindings/rust/src/lazy_reader.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bindings/rust/src/lazy_reader.rs b/bindings/rust/src/lazy_reader.rs index 670080a..73a9d53 100644 --- a/bindings/rust/src/lazy_reader.rs +++ b/bindings/rust/src/lazy_reader.rs @@ -12,7 +12,7 @@ //! required, a lazy reader mechanism can be utilized. //! //! Here is an example about how to make a lazy reader from transaction: -//!``` +//!```ignore //!use blockchain; //!use alloc::boxed::Box; //!use ckb_std::{ckb_constants::Source, error::SysError, syscalls}; @@ -387,7 +387,7 @@ impl Cursor { } } /// - /// Assume a cursor is `fixvec`, `dynvec`, or `table`, return the item count. + /// Assuming a cursor is `fixvec`, `dynvec`, or `table`, return the item count. /// /// See [molecule memory layout](https://github.com/nervosnetwork/rfcs/blob/master/rfcs/0008-serialization/0008-serialization.md#memory-layout) /// @@ -441,7 +441,7 @@ impl Cursor { } /// - /// Assume a cursor is fixvec with item size `item_size`, return an item + /// Assuming a cursor is fixvec with item size `item_size`, return an item /// with index `item_index` /// pub fn fixvec_slice_by_index( @@ -520,7 +520,7 @@ impl Cursor { pub fn convert_to_rawbytes(&self) -> Result { self.fixvec_slice_raw_bytes() } - /// Assume a cursor is `union`. Return a `union`. + /// Assuming a cursor is `union`. Return a `union`. pub fn union_unpack(&self) -> Result { let item_id = self.unpack_number()?; let mut cursor = self.clone();