Skip to content

Commit

Permalink
fix: avoid use of \ in doctest strings, for ide integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Oct 23, 2023
1 parent a70f195 commit 8022f53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/rattler_conda_types/src/match_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ use matcher::StringMatcher;
/// assert_eq!(spec.version, Some(VersionSpec::from_str("==1.0").unwrap()));
/// assert_eq!(spec.build, Some(StringMatcher::from_str("py27_0").unwrap()));
///
/// let spec = MatchSpec::from_str("conda-forge::foo[version=\"1.0.*\"]").unwrap();
/// let spec = MatchSpec::from_str(r#"conda-forge::foo[version="1.0.*"]"#).unwrap();
/// assert_eq!(spec.name, Some(PackageName::new_unchecked("foo")));
/// assert_eq!(spec.version, Some(VersionSpec::from_str("1.0.*").unwrap()));
/// assert_eq!(spec.channel, Some("conda-forge".to_string()));
Expand All @@ -94,7 +94,7 @@ use matcher::StringMatcher;
/// assert_eq!(spec.channel, Some("*".to_string()));
/// assert_eq!(spec.subdir, Some("linux-64".to_string()));
///
/// let spec = MatchSpec::from_str("foo[build=\"py2*\"]").unwrap();
/// let spec = MatchSpec::from_str(r#"foo[build="py2*"]"#).unwrap();
/// assert_eq!(spec.name, Some(PackageName::new_unchecked("foo")));
/// assert_eq!(spec.build, Some(StringMatcher::from_str("py2*").unwrap()));
/// ```
Expand Down

0 comments on commit 8022f53

Please sign in to comment.