hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 469f041b43a7c6996b39dd6b916699b2d933af91
parent 3b6e25449560a085d2242d70ca83121f0e9deefc
Author: Eyal Sawady <ecs@d2evs.net>
Date:   Fri,  9 Apr 2021 08:37:15 -0400

errors::opaque: fix example code

Diffstat:
Merrors/opaque.ha | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/errors/opaque.ha b/errors/opaque.ha @@ -7,9 +7,10 @@ // // fn wraperror(err: myerror) error::opaque = { // static assert(size(myerror) <= size(error::opaque_data)); -// let wrapped = opaque { strerror = &opaque_strerror, ... }; +// let wrapped = errors::opaque { strerror = &opaque_strerror, ... }; // let myptr = &wrapped.data: *myerror; // *myptr = err; +// return wrapped; // }; // // fn opaque_strerror(err: *opaque_data) const str = {