Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

Commit 92dcd71

Browse files
committed
chore: almost nothing throws for core-string
1 parent b9bd0ac commit 92dcd71

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pages/ref/core-strings.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ Extension function for the [`String{:tact}`][p].
217217

218218
Returns a [`Slice{:tact}`][p] out of the decoded [Base64](https://en.wikipedia.org/wiki/Base64) [`String{:tact}`][p]. Alias to `self.asSlice().fromBase64(){:tact}`.
219219

220-
Note, that this function is very limited and can be used only for small strings that fit in a single [`Cell{:tact}`][p] (i.e., strings that contain no more than 1023 bits of data).
220+
Note, that this function is limited and only takes the first $1023$ bits of data from the given [`String{:tact}`][p], without throwing an exception when the [`String{:tact}`][p] is larger (i.e. contains more than $1023$ bits of data).
221221

222222
Usage example:
223223

@@ -239,7 +239,7 @@ Extension function for the [`Slice{:tact}`][p].
239239

240240
Returns a [`String{:tact}`][p] from a [`Slice{:tact}`][p] by trying to load all of its bits without looking for its references, if any.
241241

242-
Note, that this function doesn't look at the references at all and is truncates its output to 1023 bits, so use it only if you know what you're doing.
242+
Note, that this function doesn't look at the references at all and is truncates its output to $1023$ bits, so use it only if you know what you're doing.
243243

244244
Usage example:
245245

@@ -259,9 +259,9 @@ extends fun fromBase64(self: Slice): Slice;
259259

260260
Extension function for the [`Slice{:tact}`][p].
261261

262-
Returns a [`Slice{:tact}`][p] out of the decoded [Base64](https://en.wikipedia.org/wiki/Base64) [`Slice{:tact}`][p].
262+
Returns a new [`Slice{:tact}`][p] out of the decoded [Base64](https://en.wikipedia.org/wiki/Base64) [`Slice{:tact}`][p].
263263

264-
Note, that this function doesn't load [`Cell{:tact}`][p] references, which makes it limited to only 1023 bits of data.
264+
Note, that this function is limited and only takes the first $1023$ bits of data from the given [`Slice{:tact}`][p], without throwing an exception if the [`Slice{:tact}`][p] has more data (i.e., when it has any references).
265265

266266
Usage example:
267267

@@ -296,7 +296,7 @@ Extension function for the [`Int{:tact}`][int].
296296

297297
Returns a [`String{:tact}`][p] from an [`Int{:tact}`][int] value using a [fixed-point representation](https://en.wikipedia.org/wiki/Fixed-point_arithmetic) of a fractional number, where `self` is a significant part of the number and `digits` is a number of digits in the fractional part.
298298

299-
More precisely, `digits` is an exponentiation parameter of $10^{-\mathrm{digits}}$ expression, which gives the represented fractional number when multiplied by the actual [`Int{:tact}`][int] value. Parameter `digits` is required to be in the semi-closed interval: $0 <=$ `digits` $< 77$.
299+
More precisely, `digits` is an exponentiation parameter of $10^{-\mathrm{digits}}$ expression, which gives the represented fractional number when multiplied by the actual [`Int{:tact}`][int] value. Parameter `digits` is required to be in the semi-closed interval: $0 <=$ `digits` $< 78$, otherwise an exception with [exit code 134](/book/exit-codes#134) will be thrown: `Invalid argument`.
300300

301301
Usage example:
302302

0 commit comments

Comments
 (0)