Skip to content

Commit 2a8d9d5

Browse files
authored
Fix doc comments format to become compatible with tip gofmt. (#694)
golang/go#51082 changed how gofmt handles some comments, so we need to slightly reformat them to avoid `gofmt -s -d .` errors.
1 parent 981852f commit 2a8d9d5

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

graph_test.go

+28-22
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,18 @@ func createExpectedEdges(parent expectedNode, children ...expectedNode) {
188188
}
189189

190190
// createTestCase1 creates a test case that initially looks like:
191-
// 0
192-
// |(5)
193-
// 1
194-
// (3)/ \(4)
195-
// 2 3.
191+
//
192+
// 0
193+
// |(5)
194+
// 1
195+
// (3)/ \(4)
196+
// 2 3.
196197
//
197198
// After keeping 0, 2, and 3, it expects the graph:
198-
// 0
199-
// (3)/ \(4)
200-
// 2 3.
199+
//
200+
// 0
201+
// (3)/ \(4)
202+
// 2 3.
201203
func createTestCase1() trimTreeTestcase {
202204
// Create initial graph
203205
graph := &Graph{make(Nodes, 4)}
@@ -229,20 +231,22 @@ func createTestCase1() trimTreeTestcase {
229231
}
230232

231233
// createTestCase2 creates a test case that initially looks like:
232-
// 3
233-
// | (12)
234-
// 1
235-
// | (8)
236-
// 2
237-
// | (15)
238-
// 0
239-
// | (10)
240-
// 4.
234+
//
235+
// 3
236+
// | (12)
237+
// 1
238+
// | (8)
239+
// 2
240+
// | (15)
241+
// 0
242+
// | (10)
243+
// 4.
241244
//
242245
// After keeping 3 and 4, it expects the graph:
243-
// 3
244-
// | (10)
245-
// 4.
246+
//
247+
// 3
248+
// | (10)
249+
// 4.
246250
func createTestCase2() trimTreeTestcase {
247251
// Create initial graph
248252
graph := &Graph{make(Nodes, 5)}
@@ -284,10 +288,12 @@ func createTestCase3() trimTreeTestcase {
284288
}
285289

286290
// createTestCase4 creates a test case that initially looks like:
287-
// 0.
291+
//
292+
// 0.
288293
//
289294
// After keeping 0, it expects the graph:
290-
// 0.
295+
//
296+
// 0.
291297
func createTestCase4() trimTreeTestcase {
292298
graph := &Graph{make(Nodes, 1)}
293299
nodes := graph.Nodes

0 commit comments

Comments
 (0)