Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Dedent needlessly indented example in getter-return docs #15363

Merged
merged 1 commit into from Nov 28, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 11 additions & 11 deletions docs/rules/getter-return.md
Expand Up @@ -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.
Expand Down