Skip to content

Commit a757075

Browse files
committed
fix experiment > experimental
1 parent bccd657 commit a757075

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/content/language/macros.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This page covers each (at a high level, as ***the feature is still in preview***
1515
in the following sections:
1616

1717
- [**The `JsonCodable` macro**](#the-jsoncodable-macro):
18-
A ready-made macro you can try out today (behind an experiment flag)
18+
A ready-made macro you can try out today (behind an experimental flag)
1919
that offers a seamless solution to the
2020
common issue of tedious JSON serialization and deserialization in Dart.
2121

@@ -31,7 +31,7 @@ the feature is complete.
3131
## The `JsonCodable` macro
3232

3333
:::important
34-
The `JsonCodable` macro is not stable and currently behind an [experiment flag][].
34+
The `JsonCodable` macro is not stable and currently behind an [experimental flag][].
3535
It only works with Dart `3.5.0-152` or later.
3636
This is available from the [Dart dev channel][channel]
3737
or from the [Flutter master channel][flutter-channel].
@@ -44,7 +44,7 @@ user-defined Dart classes to JSON maps of type `Map<String, Object?>`.
4444
It generates two members, a `toJson` serialization method,
4545
and a `fromJson` deserialization constructor.
4646

47-
[experiment flag]: /tools/experiment-flags
47+
[experimental flag]: /tools/experiment-flags
4848
[`JsonCodable`]: {{site.pub-pkg}}/json/versions/0.20.0
4949
[channel]: https://dart.dev/get-dart#release-channels
5050
[flutter-channel]: {{site.flutter-docs}}/release/upgrade#other-channels
@@ -75,7 +75,7 @@ and a `fromJson` deserialization constructor.
7575
import 'package:json/json.dart';
7676
```
7777

78-
7. Run your project with the experiment flag:
78+
7. Run your project with the experimental flag:
7979

8080
```console
8181
dart run --enable-experiment=macros bin/my_app.dart
@@ -233,8 +233,9 @@ Some common examples that we hope to solve with macros in the future are:
233233
### How macros work
234234

235235
:::important
236-
The macros language feature is not stable and currently behind an [experiment flag][].
237-
Functionality is highly subject to change. This section will remain very high-level until stable.
236+
The macros language feature is not stable and currently behind an
237+
[experimental flag][]. Functionality is highly subject to change.
238+
This section will remain very high-level until stable.
238239
:::
239240

240241
To create a macro, you write a macro declaration similar to a class,
@@ -275,7 +276,7 @@ properties. The macro gathers this information through deep [introspection][] of
275276
the program.
276277

277278
Macros are still under development, so that's as much detail we can go into for now.
278-
If you're curious, or would like to try it yourself behind an experiment flag,
279+
If you're curious, or would like to try it yourself behind an experimental flag,
279280
the best guidance is to take a look at the implementation of exisiting macros:
280281

281282
- Check out the [definition][json] of the `JsonCodable` macro,

0 commit comments

Comments
 (0)