Skip to content

Commit bf1a1cc

Browse files
authoredMar 25, 2025··
fix(docs): dump() cannot be applied to values of StringBuilder type (#2463)
1 parent 7090691 commit bf1a1cc

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed
 

‎dev-docs/CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
- `internalExternalReceiversOutsideMethodsMap` have been reworked to ensure compatibility with explorers: PR [#2398](https://github.com/tact-lang/tact/pull/2398)
1818

19+
### Docs
20+
21+
- Fixed description of the `dump()` function, which does not support values of `StringBuilder` type: PR [#2463](https://github.com/tact-lang/tact/pull/2463)
22+
1923
### Release contributors
2024

2125
- [Shvetc Andrei](https://github.com/Shvandre)
2226
- [Daniil Sedov](https://github.com/Gusarich)
27+
- [Novus Nota](https://github.com/novusnota)
2328

2429
## [1.6.4] - 2025-03-18
2530

‎docs/src/content/docs/ref/core-debug.mdx

+3-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Can be applied to the following list of types and values:
6060
* [`Bool{:tact}`][bool]
6161
* [`Address{:tact}`][p]
6262
* [`Cell{:tact}`][cell], [`Builder{:tact}`][builder], or [`Slice{:tact}`][slice]
63-
* [`String{:tact}`][p] or [`StringBuilder{:tact}`][p]
63+
* [`String{:tact}`][p]
6464
* [`map<K, V>{:tact}`](/book/maps)
6565
* [Optionals and `null{:tact}` value](/book/optionals)
6666
* `void`, which is implicitly returned when a function doesn't have a return value defined
@@ -86,9 +86,8 @@ dump(emptyCell()); // Cell
8686
dump(beginCell()); // Builder
8787
dump(emptySlice()); // Slice
8888
89-
// String or StringBuilder
90-
dump("Hello, my name is..."); // String
91-
dump(beginTailString()); // StringBuilder
89+
// String
90+
dump("Hello, my name is...");
9291
9392
// Maps
9493
let m: map<Int, Int> = emptyMap();

‎docs/src/content/docs/zh-cn/ref/core-debug.mdx

+3-4
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ fun dump(arg);
5656
- [`Bool{:tact}`][bool]
5757
- [`Address{:tact}`][p]
5858
- [`Cell{:tact}`][cell], [`Builder{:tact}`][builder][`Slice{:tact}`][slice]
59-
- [`String{:tact}`][p][`StringBuilder{:tact}`][p]
59+
- [`String{:tact}`][p]
6060
- [`map<K, V>{:tact}`](/zh-cn/book/maps)
6161
- [Optionals 和 `null{:tact}` value](/zh-cn/book/optionals)
6262
- `void`,当函数没有定义返回值时隐式返回
@@ -79,9 +79,8 @@ dump(emptyCell()); // Cell
7979
dump(beginCell()); // Builder
8080
dump(emptySlice()); // Slice
8181
82-
// String or StringBuilder
83-
dump("Hello, my name is..."); // String
84-
dump(beginTailString()); // StringBuilder
82+
// String
83+
dump("Hello, my name is...");
8584
8685
// Maps
8786
let m: map<Int, Int> = emptyMap();

0 commit comments

Comments
 (0)
Please sign in to comment.