Skip to content

Commit d53effc

Browse files
authored
Merge pull request #60 from ewasm/debug
Use snake case in debug module
2 parents da8faef + 4108719 commit d53effc

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/debug.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ pub fn print64(value: u64) {
2222
unsafe { native::debug_print64(value) }
2323
}
2424

25-
pub fn printMem(slice: &[u8]) {
25+
pub fn print_mem(slice: &[u8]) {
2626
unsafe { native::debug_printMem(slice.as_ptr() as *const u32, slice.len() as u32) }
2727
}
2828

29-
pub fn printMemHex(slice: &[u8]) {
30-
unsafe { native::debug_printMem(slice.as_ptr() as *const u32, slice.len() as u32) }
29+
pub fn print_mem_hex(slice: &[u8]) {
30+
unsafe { native::debug_printMemHex(slice.as_ptr() as *const u32, slice.len() as u32) }
3131
}
3232

33-
pub fn printStorage(key: &StorageKey) {
33+
pub fn print_storage(key: &StorageKey) {
3434
unsafe { native::debug_printStorage(key.bytes.as_ptr() as *const u32) }
3535
}
3636

37-
pub fn printStorageHex(key: &StorageKey) {
37+
pub fn print_storage_hex(key: &StorageKey) {
3838
unsafe { native::debug_printStorageHex(key.bytes.as_ptr() as *const u32) }
3939
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ pub fn returndata_size() -> usize {
539539

540540
/// Halts execution, reverts all changes to the state and consumes all gas.
541541
pub fn abort() -> ! {
542-
/// TODO: use assembly block with `unreachable`
542+
// TODO: use assembly block with `unreachable`
543543
panic!()
544544
}
545545

0 commit comments

Comments
 (0)