diff --git a/docs/rules/getter-return.md b/docs/rules/getter-return.md index c49f39dd296..631de805966 100644 --- a/docs/rules/getter-return.md +++ b/docs/rules/getter-return.md @@ -3,17 +3,17 @@ The get syntax binds an object property to a function that will be called when that property is looked up. It was first introduced in ECMAScript 5: ```js - var p = { - get name(){ - return "nicholas"; - } - }; - - Object.defineProperty(p, "age", { - get: function (){ - return 17; - } - }); +var p = { + get name(){ + return "nicholas"; + } +}; + +Object.defineProperty(p, "age", { + get: function (){ + return 17; + } +}); ``` Note that every `getter` is expected to return a value.