Skip to content

Commit

Permalink
use a more readable example
Browse files Browse the repository at this point in the history
  • Loading branch information
mmomtchev committed Dec 22, 2023
1 parent 72751d8 commit eb67f4f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [1.2.0]
## [1.2.0]

- Support storing of a custom per-isolate data structure (`Napi::Env::GetInstanceData` and `Napi::Env::SetInstanceData`)
- Specify the memory ownership rules for `Buffer`
- Support returning references to nested objects
- Fix a minor memory leak when calling method with incorrect number of arguments
- Fix a minor memory leak when calling a method with incorrect number of arguments

### [1.1.1] 2023-12-01

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,14 +477,14 @@ Consider the following C++ code:
class Time {
unsigned long timestamp;
public:
Time(unsigned long v);
Time(unsigned long v): timestamp(v) {};
};
class DateTime {
Time time;
public:
DateTime(Time v);
operator Time &();
DateTime(Time v): time(v) {};
Time &get() { return time; };
};
```

Expand Down

0 comments on commit eb67f4f

Please sign in to comment.