diff --git a/README.md b/README.md
index e604d5af..25537220 100644
--- a/README.md
+++ b/README.md
@@ -1283,9 +1283,7 @@ frp supports feature gates to enable or disable experimental features. This allo
 To enable an experimental feature, add the feature gate to your configuration:
 
 ```toml
-featureGates = {
-  VirtualNet = true
-}
+featureGates = { VirtualNet = true }
 ```
 
 ### Feature Lifecycle
diff --git a/doc/virtual_net.md b/doc/virtual_net.md
index 62653e9f..6f135dfc 100644
--- a/doc/virtual_net.md
+++ b/doc/virtual_net.md
@@ -49,9 +49,7 @@ type = "virtual_net"
 # frpc.toml (client side)
 serverAddr = "x.x.x.x"
 serverPort = 7000
-featureGates = {
-  VirtualNet = true
-}
+featureGates = { VirtualNet = true }
 
 # Configure the virtual network interface
 virtualNet.address = "100.86.0.2/24"