From 503f279527e106c065a5435181bf3fc0b04f7140 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Wed, 14 Oct 2015 21:45:12 +0200 Subject: [PATCH] doc: fix indent in tls resumption example 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 --- doc/api/tls.markdown | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index eb98328fcebd66..9fb0e095c02e7b 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -605,14 +605,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'