Skip to content

Commit

Permalink
Fix tab indent (#938)
Browse files Browse the repository at this point in the history
* doc: fix tab indent
  • Loading branch information
tniessen authored Mar 22, 2021
1 parent 1916cb9 commit 7319a0d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions doc/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ Define a property on the object.
void Napi::Object::DefineProperties (____ properties)
```
- `[in] properties`: A list of [`Napi::PropertyDescriptor`](property_descriptor.md). Can be one of the following types:
- const std::initializer_list<Napi::PropertyDescriptor>&
- const std::vector<Napi::PropertyDescriptor>&
- const std::initializer_list<Napi::PropertyDescriptor>&
- const std::vector<Napi::PropertyDescriptor>&
Defines properties on the object.
Expand Down
4 changes: 2 additions & 2 deletions doc/property_descriptor.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ The name of the property can be any of the following types:
static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (___ name,
Callable cb,
napi_property_attributes attributes = napi_default,
void *data = nullptr);
void *data = nullptr);
```

* `[in] name`: The name of the Callable function.
Expand All @@ -244,7 +244,7 @@ static Napi::PropertyDescriptor Napi::PropertyDescriptor::Function (
___ name,
Callable cb,
napi_property_attributes attributes = napi_default,
void *data = nullptr);
void *data = nullptr);
```
* `[in] env`: The environment in which to create this accessor.
Expand Down
5 changes: 2 additions & 3 deletions napi-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4148,10 +4148,9 @@ inline AsyncContext::AsyncContext(napi_env env, const char* resource_name)
}

inline AsyncContext::AsyncContext(napi_env env,
const char* resource_name,
const char* resource_name,
const Object& resource)
: _env(env),
_context(nullptr) {
: _env(env), _context(nullptr) {
napi_value resource_id;
napi_status status = napi_create_string_utf8(
_env, resource_name, NAPI_AUTO_LENGTH, &resource_id);
Expand Down

0 comments on commit 7319a0d

Please sign in to comment.