diff --git a/CHANGELOG.md b/CHANGELOG.md index 14b5860e..1ebb3d60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ Enhancements * A new `range` function variant that takes an exclusive range with a step. * `as_string` is added to BLOB's to convert it into a string by interpreting it as a UTF-8 byte stream. * `FnAccess::is_private`, `FnAccess::is_public`, `FnNamespace::is_module_namespace` and `FnNameSpace::is_global_namespace` are added for convenience. +* `Iterator` type for functions metadata is simplified to `Iterator`. Version 1.8.0 diff --git a/src/packages/iter_basic.rs b/src/packages/iter_basic.rs index 4f6d4317..28304579 100644 --- a/src/packages/iter_basic.rs +++ b/src/packages/iter_basic.rs @@ -248,7 +248,7 @@ macro_rules! reg_range { $lib.update_fn_metadata_with_comments(_hash, [ concat!("from: ", stringify!($y)), concat!("to: ", stringify!($y)), - concat!("Iterator"), + concat!("Iterator<", stringify!($y), ">"), ], [ "/// Return an iterator over the exclusive range of `from..to`.", "/// The value `to` is never included.", @@ -282,7 +282,7 @@ macro_rules! reg_range { concat!("from: ", stringify!($y)), concat!("to: ", stringify!($y)), concat!("step: ", stringify!($y)), - concat!("Iterator") + concat!("Iterator<", stringify!($y), ">") ], [ "/// Return an iterator over the exclusive range of `from..to`, each iteration increasing by `step`.", "/// The value `to` is never included.", @@ -312,7 +312,7 @@ macro_rules! reg_range { $lib.update_fn_metadata_with_comments(_hash, [ concat!("range: Range<", stringify!($y), ">"), concat!("step: ", stringify!($y)), - concat!("Iterator") + concat!("Iterator<", stringify!($y), ">") ], [ "/// Return an iterator over an exclusive range, each iteration increasing by `step`.", "///", @@ -388,7 +388,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["string: &str", &range_type, "Iterator"], + ["string: &str", &range_type, "Iterator"], [ "/// Return an iterator over an exclusive range of characters in the string.", "///", @@ -410,7 +410,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["string: &str", &range_inclusive_type, "Iterator"], + ["string: &str", &range_inclusive_type, "Iterator"], [ "/// Return an iterator over an inclusive range of characters in the string.", "///", @@ -428,7 +428,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["string: &str", "start: INT", "len: INT", "Iterator"], + ["string: &str", "start: INT", "len: INT", "Iterator"], [ "/// Return an iterator over a portion of characters in the string.", "///", @@ -452,7 +452,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["string: &str", "from: INT", "Iterator"], + ["string: &str", "from: INT", "Iterator"], [ "/// Return an iterator over the characters in the string starting from the `start` position.", "///", @@ -474,7 +474,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["string: &str", "Iterator"], + ["string: &str", "Iterator"], [ "/// Return an iterator over the characters in the string.", "///", @@ -494,7 +494,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["string: &mut ImmutableString", "Iterator"], + ["string: &mut ImmutableString", "Iterator"], [ "/// Return an iterator over all the characters in the string.", "///", @@ -520,7 +520,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["value: INT", &range_type, "Iterator"], + ["value: INT", &range_type, "Iterator"], [ "/// Return an iterator over an exclusive range of bits in the number.", "///", @@ -544,7 +544,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["value: INT", &range_inclusive_type, "Iterator"], + ["value: INT", &range_inclusive_type, "Iterator"], [ "/// Return an iterator over an inclusive range of bits in the number.", "///", @@ -564,7 +564,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["value: INT", "from: INT", "len: INT", "Iterator"], + ["value: INT", "from: INT", "len: INT", "Iterator"], [ "/// Return an iterator over a portion of bits in the number.", "///", @@ -588,7 +588,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["value: INT", "from: INT", "Iterator"], + ["value: INT", "from: INT", "Iterator"], [ "/// Return an iterator over the bits in the number starting from the specified `start` position.", "///", @@ -610,7 +610,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["value: INT", "Iterator"], + ["value: INT", "Iterator"], [ "/// Return an iterator over all the bits in the number.", "///", @@ -632,7 +632,7 @@ def_package! { #[cfg(feature = "metadata")] lib.update_fn_metadata_with_comments( _hash, - ["value: &mut INT", "Iterator"], + ["value: &mut INT", "Iterator"], [ "/// Return an iterator over all the bits in the number.", "///",