Skip to content

Commit

Permalink
Fix 结构体 and 类.
Browse files Browse the repository at this point in the history
  • Loading branch information
krahets committed Feb 27, 2023
1 parent 7314878 commit ff60227
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/chapter_array_and_linkedlist/linked_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
=== "JavaScript"

```javascript title=""
/* 链表结点结构体 */
/* 链表结点类 */
class ListNode {
val;
next;
Expand All @@ -77,7 +77,7 @@
=== "TypeScript"

```typescript title=""
/* 链表结点结构体 */
/* 链表结点类 */
class ListNode {
val: number;
next: ListNode | null;
Expand Down Expand Up @@ -595,7 +595,7 @@
=== "C++"

```cpp title=""
/* 链表结点结构体 */
/* 双向链表结点结构体 */
struct ListNode {
int val; // 结点值
ListNode *next; // 指向后继结点的指针(引用)
Expand Down
2 changes: 1 addition & 1 deletion docs/chapter_tree/binary_tree.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
=== "Go"

```go title=""
/* 链表结点类 */
/* 链表结点结构体 */
type TreeNode struct {
Val int
Left *TreeNode
Expand Down

0 comments on commit ff60227

Please sign in to comment.