doc: fix indent in tls resumption example
authorRoman Reiss <me@silverwind.io>
Wed, 14 Oct 2015 19:45:12 +0000 (21:45 +0200)
committerJames M Snell <jasnell@gmail.com>
Thu, 29 Oct 2015 15:38:41 +0000 (08:38 -0700)
Markdown requires 4-space indent to correctly format code blocks. This
fixes the example so it's correctly presented as code.

PR-URL: https://github.com/nodejs/node/pull/3372
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
doc/api/tls.markdown

index e52ab62..724c537 100644 (file)
@@ -606,14 +606,14 @@ established after addition of event listener.
 
 Here's an example for using TLS session resumption:
 
-  var tlsSessionStore = {};
-  server.on('newSession', function(id, data, cb) {
-    tlsSessionStore[id.toString('hex')] = data;
-    cb();
-  });
-  server.on('resumeSession', function(id, cb) {
-    cb(null, tlsSessionStore[id.toString('hex')] || null);
-  });
+    var tlsSessionStore = {};
+    server.on('newSession', function(id, data, cb) {
+      tlsSessionStore[id.toString('hex')] = data;
+      cb();
+    });
+    server.on('resumeSession', function(id, cb) {
+      cb(null, tlsSessionStore[id.toString('hex')] || null);
+    });
 
 ### Event: 'OCSPRequest'