mirror of
https://github.com/krahets/hello-algo.git
synced 2026-07-10 14:36:06 +00:00
fix(Dart): Avoid using num as a variable name (#946)
This commit is contained in:
@@ -8,9 +8,9 @@ import '../chapter_stack_and_queue/linkedlist_deque.dart';
|
||||
|
||||
/* Driver Code */
|
||||
void main() {
|
||||
int num = 3;
|
||||
int hashNum = num.hashCode;
|
||||
print("整数 $num 的哈希值为 $hashNum");
|
||||
int _num = 3;
|
||||
int hashNum = _num.hashCode;
|
||||
print("整数 $_num 的哈希值为 $hashNum");
|
||||
|
||||
bool bol = true;
|
||||
int hashBol = bol.hashCode;
|
||||
|
||||
Reference in New Issue
Block a user