Skip to content

Commit 2a23e41

Browse files
committed
update format
1 parent b1c4a14 commit 2a23e41

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/02_string/03.string_to_num.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22

33
以下示例将数字字符串转换成数字,若遇到非数字的字符,将提前结束转换。
44

5+
- **string_2_num**
6+
57
````move
68
{{#include ./code/cookbook/sources/string_2_num.move}}
79
````
810

11+
- **string_2_num_tests**
12+
913
````move
1014
{{#include ./code/cookbook/tests/string_2_num_tests.move}}
1115
````

src/02_string/04.num_to_string.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22

33
以下示例将数字转换成字节数组,再通过调用`to_ascii_string()`方法转换成数字字符串。
44

5+
- **num_2_string**
6+
57

68
````move
79
{{#include ./code/cookbook/sources/num_2_string.move}}
810
````
911

12+
- **num_2_string_tests**
13+
1014
````move
1115
{{#include ./code/cookbook/tests/num_2_string_tests.move}}
1216
````

0 commit comments

Comments
 (0)