Skip to content

Commit c9d0308

Browse files
committed
Update a doc comment
1 parent 4e60e95 commit c9d0308

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

apollo-federation/src/sources/connect/string_template.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ impl StringTemplate {
9696
}
9797

9898
impl StringTemplate {
99-
/// Interpolation for when the constant type is a string. This can't be implemented for
100-
/// arbitrary generic types, so non-string consumers (headers) implement this themselves with
101-
/// any additional validations/transformations they need.
99+
/// Interpolate the expressions in the template into a basic string.
100+
///
101+
/// For URIs, use [`Self::interpolate_uri`] instead.
102102
pub(crate) fn interpolate(&self, vars: &IndexMap<String, Value>) -> Result<String, Error> {
103103
let mut result = String::new();
104104
for part in &self.parts {

0 commit comments

Comments
 (0)