Skip to content

Commit 7319a0d

Browse files
authored
Fix tab indent (#938)
* doc: fix tab indent
1 parent 1916cb9 commit 7319a0d

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

doc/object.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,8 @@ Define a property on the object.
218218
void Napi::Object::DefineProperties (____ properties)
219219
```
220220
- `[in] properties`: A list of [`Napi::PropertyDescriptor`](property_descriptor.md). Can be one of the following types:
221-
- const std::initializer_list<Napi::PropertyDescriptor>&
222-
- const std::vector<Napi::PropertyDescriptor>&
221+
- const std::initializer_list<Napi::PropertyDescriptor>&
222+
- const std::vector<Napi::PropertyDescriptor>&
223223
224224
Defines properties on the object.
225225

doc/property_descriptor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ The name of the property can be any of the following types:
220220
static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (___ name,
221221
Callable cb,
222222
napi_property_attributes attributes = napi_default,
223-
void *data = nullptr);
223+
void *data = nullptr);
224224
```
225225

226226
* `[in] name`: The name of the Callable function.
@@ -244,7 +244,7 @@ static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (
244244
___ name,
245245
Callable cb,
246246
napi_property_attributes attributes = napi_default,
247-
void *data = nullptr);
247+
void *data = nullptr);
248248
```
249249
250250
* `[in] env`: The environment in which to create this accessor.

napi-inl.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4148,10 +4148,9 @@ inline AsyncContext::AsyncContext(napi_env env, const char* resource_name)
41484148
}
41494149

41504150
inline AsyncContext::AsyncContext(napi_env env,
4151-
const char* resource_name,
4151+
const char* resource_name,
41524152
const Object& resource)
4153-
: _env(env),
4154-
_context(nullptr) {
4153+
: _env(env), _context(nullptr) {
41554154
napi_value resource_id;
41564155
napi_status status = napi_create_string_utf8(
41574156
_env, resource_name, NAPI_AUTO_LENGTH, &resource_id);

0 commit comments

Comments
 (0)