mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-19 23:10:58 +00:00
Fix multilingual content typos (#1958)
This commit is contained in:
@@ -166,7 +166,7 @@ As shown in the following code, a linked list node `ListNode` contains not only
|
||||
// Constructor
|
||||
class ListNode(x: Int) {
|
||||
val _val: Int = x // Node value
|
||||
val next: ListNode? = null // Reference to the next node
|
||||
var next: ListNode? = null // Reference to the next node
|
||||
}
|
||||
```
|
||||
|
||||
@@ -658,8 +658,8 @@ As shown in the figure below, there are three common types of linked lists:
|
||||
// Constructor
|
||||
class ListNode(x: Int) {
|
||||
val _val: Int = x // Node value
|
||||
val next: ListNode? = null // Reference to the successor node
|
||||
val prev: ListNode? = null // Reference to the predecessor node
|
||||
var next: ListNode? = null // Reference to the successor node
|
||||
var prev: ListNode? = null // Reference to the predecessor node
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user