Skip to content

Commit 567c728

Browse files
committed
Fix: Angle brackets will be interpreted as HTML.
1 parent 890befe commit 567c728

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/src/contracts/abi/abi.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class ContractFunction {
238238
/// accept a list of ints that should be in [0; 256].
239239
/// * strings will accept an dart string
240240
/// * bool will accept a dart bool
241-
/// * uint<x> and int<x> will accept a dart int
241+
/// * uint&lt;x&gt; and int&lt;x&gt; will accept a dart int
242242
///
243243
/// Other types are not supported at the moment.
244244
Uint8List encodeCall(List<dynamic> params) {
@@ -403,7 +403,7 @@ class FunctionParameter<T> {
403403
///
404404
/// Consider this contract:
405405
/// ```solidity
406-
/// pragma solidity >=0.4.19 <0.7.0;
406+
/// pragma solidity &gt;=0.4.19 &lt;0.7.0;
407407
/// pragma experimental ABIEncoderV2;
408408
///
409409
/// contract Test {

lib/src/contracts/abi/arrays.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
part of '../../../web3dart.dart';
22

3-
/// The bytes<M> solidity type, which stores up to 32 bytes.
3+
/// The bytes&lt;M&gt; solidity type, which stores up to 32 bytes.
44
class FixedBytes extends AbiType<Uint8List> {
55
/// Constructor.
66
const FixedBytes(this.length) : assert(0 <= length && length <= 32);

lib/src/contracts/abi/integers.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ abstract class _IntTypeBase extends AbiType<BigInt> {
4141
}
4242
}
4343

44-
/// The solidity uint<M> type that encodes unsigned integers.
44+
/// The solidity uint&lt;M&gt; type that encodes unsigned integers.
4545
class UintType extends _IntTypeBase {
4646
/// Constructor.
4747
const UintType({int length = 256}) : super(length);
@@ -168,7 +168,7 @@ class BoolType extends AbiType<bool> {
168168
}
169169
}
170170

171-
/// The solidity int<M> types that encodes twos-complement integers.
171+
/// The solidity int&lt;M&gt; types that encodes twos-complement integers.
172172
class IntType extends _IntTypeBase {
173173
/// Constructor.
174174
const IntType({int length = 256}) : super(length);

lib/src/core/client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ part of 'package:web3dart/web3dart.dart';
1111
/// import "package:web_socket_channel/io.dart";
1212
///
1313
/// final client = Web3Client(rpcUrl, Client(), socketConnector: () {
14-
/// return IOWebSocketChannel.connect(wsUrl).cast<String>();
14+
/// return IOWebSocketChannel.connect(wsUrl).cast&lt;String&gt;();
1515
/// });
1616
/// ```
1717
typedef SocketConnector = StreamChannel<String> Function();

0 commit comments

Comments
 (0)