Skip to content

Commit bf837ed

Browse files
Guest0x0bobzhang
authored andcommitted
add link to detailed description of migration plan in deprecation message
1 parent a39ee41 commit bf837ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/iter.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ pub fn[T] Iter::count(self : Iter[T]) -> Int {
145145

146146
///|
147147
/// Do not use this method, it is for internal use only.
148-
#deprecated("`Iter::new`, and the internal iterator type `Iter`, is deprecated. Create an external iterator `Iterator`, and use `Iterator::iter` to migrate usage of `Iter::new`. `Iter` will become an alias of `Iterator` in the future.")
148+
#deprecated("`Iter::new`, and the internal iterator type `Iter`, is deprecated. Create an external iterator `Iterator`, and use `Iterator::iter` to migrate usage of `Iter::new`. `Iter` will become an alias of `Iterator` in the future. See https://github.com/moonbitlang/core/pull/3050 for more details.")
149149
pub fn[T] Iter::new(f : ((T) -> IterResult) -> IterResult) -> Iter[T] {
150150
Iter(f)
151151
}

builtin/iter2.mbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub impl[A : Show, B : Show] Show for Iter2[A, B] with output(self, logger) {
5555
}
5656

5757
///|
58-
#deprecated("`Iter2::new`, and the internal iterator type `Iter2`, is deprecated. Create an external iterator `Iterator2`, and use `Iterator2::iter2` to migrate usage of `Iter2::new`. `Iter2` will become an alias of `Iterator2` in the future.")
58+
#deprecated("`Iter2::new`, and the internal iterator type `Iter2`, is deprecated. Create an external iterator `Iterator2`, and use `Iterator2::iter2` to migrate usage of `Iter2::new`. `Iter2` will become an alias of `Iterator2` in the future. See https://github.com/moonbitlang/core/pull/3050 for more details.")
5959
pub fn[A, B] Iter2::new(
6060
f : ((A, B) -> IterResult) -> IterResult,
6161
) -> Iter2[A, B] {

0 commit comments

Comments
 (0)