Skip to content

Commit

Permalink
Ignore on-chain script example to be compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
XuJiandong committed Apr 22, 2024
1 parent 3dbf3b9 commit bae3685
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bindings/rust/src/lazy_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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)
///
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -520,7 +520,7 @@ impl Cursor {
pub fn convert_to_rawbytes(&self) -> Result<Cursor, Error> {
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<Union, Error> {
let item_id = self.unpack_number()?;
let mut cursor = self.clone();
Expand Down

0 comments on commit bae3685

Please sign in to comment.