Skip to content

Commit 80bb0f5

Browse files
committed
fix snippets conflicts
1 parent c1c916d commit 80bb0f5

File tree

2 files changed

+315
-497
lines changed

2 files changed

+315
-497
lines changed

snippets/designpattern.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@
33
"prefix": "singleton",
44
"body": [
55
"// class Singleton {",
6-
"//\t\tprivate static Singleton _instance",
6+
"//\t\tprivate static Singleton _instance = null;",
77
"//\t\tpublic static Singleton GetInstance() {",
88
"//\t\t\tif (_instance == null) {",
99
"//\t\t\t\t_instance = new Singleton();",
10-
"// return _instance;",
10+
"//\t\treturn _instance;",
11+
"//\t\t}",
1112
"//}"
1213
],
1314
"description": "Creational design pattern singleton"
@@ -134,4 +135,4 @@
134135
],
135136
"description": "Behavioral design pattern observer"
136137
}
137-
}
138+
}

0 commit comments

Comments
 (0)