File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
components/experimental/src/measure Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,20 @@ impl MeasureUnit {
6565 /// # Examples
6666 ///
6767 /// ```
68- /// use icu_experimental::measure::parser::MeasureUnitParser;
6968 /// use icu_experimental::measure::measureunit::MeasureUnit;
7069 ///
7170 ///
72- /// let parser = MeasureUnitParser::new();
73- ///
74- /// let measure_unit = parser.try_from_str("meter").unwrap();
71+ /// let measure_unit = MeasureUnit::try_from_str("meter").unwrap();
7572 /// let short_representation = measure_unit.generate_short_representation();
7673 /// assert_eq!(short_representation, "I85", "{}", "meter");
7774 ///
7875 ///
79- /// let measure_unit = parser. try_from_str("square-meter").unwrap();
76+ /// let measure_unit = MeasureUnit:: try_from_str("square-meter").unwrap();
8077 /// let short_representation = measure_unit.generate_short_representation();
8178 /// assert_eq!(short_representation, "P2I85", "{}", "square-meter");
8279 ///
8380 ///
84- /// let measure_unit = parser. try_from_str("liter-per-100-kilometer").unwrap();
81+ /// let measure_unit = MeasureUnit:: try_from_str("liter-per-100-kilometer").unwrap();
8582 /// let short_representation = measure_unit.generate_short_representation();
8683 /// assert_eq!(short_representation, "C100I82P-1D3I85", "{}", "liter-per-100-kilometer");
8784 /// ```
You can’t perform that action at this time.
0 commit comments