Skip to content

Commit 9afd563

Browse files
committed
Added import omissions in code examples and corrected code differences between languages
1 parent 07c476e commit 9afd563

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

docs/ts-graphviz/01-getting-started/04-core-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ In addition to the declarative style, `ts-graphviz` offers an object-oriented AP
4343
**Example:**
4444

4545
```typescript
46-
import { Digraph, Node, Edge } from 'ts-graphviz';
46+
import { Digraph, Node, Edge, toDot } from 'ts-graphviz';
4747

4848
const G = new Digraph('G');
4949

i18n/ja/docusaurus-plugin-content-docs/current/ts-graphviz/01-getting-started/04-core-features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const G = digraph('G', (g) => {
4040
**例:**
4141

4242
```typescript
43-
import { Digraph, Node, Edge } from 'ts-graphviz';
43+
import { Digraph, Node, Edge, toDot } from 'ts-graphviz';
4444

4545
const G = new Digraph('G');
4646

i18n/zh-CN/docusaurus-plugin-content-docs/current/ts-graphviz/01-getting-started/04-core-features.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ const G = digraph('G', (g) => {
1717
g.node('A', { [_.color]: 'red' });
1818
g.edge(['A', 'B'], { [_.label]: 'A to B' });
1919
});
20-
21-
console.log(toDot(G));
2220
```
2321

2422
:::tip
@@ -44,7 +42,7 @@ console.log(toDot(G));
4442
**示例:**
4543

4644
```typescript
47-
import { Digraph, Node, Edge } from 'ts-graphviz';
45+
import { Digraph, Node, Edge, toDot } from 'ts-graphviz';
4846

4947
const G = new Digraph('G');
5048

0 commit comments

Comments
 (0)