Browse Source

Update system.md

Marco Bambini 6 years ago
parent
commit
8b57a2272a
1 changed files with 5 additions and 5 deletions
  1. 5 5
      docs/system.md

+ 5 - 5
docs/system.md

@@ -17,19 +17,19 @@ Gravity automatically manages memory for you using a tri-colour marking garbage
 ```swift
 ```swift
 	func main() {
 	func main() {
 		// disable GC
 		// disable GC
-		System.gcenabled = false;
+		System.gcEnabled = false;
 
 
 		// ratio used during automatic recomputation of the new gcthreshold value
 		// ratio used during automatic recomputation of the new gcthreshold value
-		var ratio = System.gcratio;
+		var ratio = System.gcRatio;
 
 
 		// minimum GC threshold size
 		// minimum GC threshold size
-		var minthreshold = System.gcminthreshold;
+		var minthreshold = System.gcMinThreshold;
 
 
 		// memory required to trigger a GC
 		// memory required to trigger a GC
-		var threshold = System.gcthreshold;
+		var threshold = System.gcThreshold;
 
 
 		// enable GC
 		// enable GC
-		System.gcenabled = true;
+		System.gcEnabled = true;
 	}
 	}
 ```
 ```