@@ -130,10 +130,10 @@ impl<'event> File<'event> {
130130 /// # use std::borrow::Cow;
131131 /// # use gix_config::File;
132132 /// # use std::convert::TryFrom;
133- /// let mut gix_config = gix_config::File::default();
134- /// let section = gix_config .new_section("hello", Some(Cow::Borrowed("world".into())))?;
133+ /// let mut git_config = gix_config::File::default();
134+ /// let section = git_config .new_section("hello", Some(Cow::Borrowed("world".into())))?;
135135 /// let nl = section.newline().to_owned();
136- /// assert_eq!(gix_config .to_string(), format!("[hello \"world\"]{nl}"));
136+ /// assert_eq!(git_config .to_string(), format!("[hello \"world\"]{nl}"));
137137 /// # Ok::<(), Box<dyn std::error::Error>>(())
138138 /// ```
139139 ///
@@ -145,13 +145,13 @@ impl<'event> File<'event> {
145145 /// # use std::convert::TryFrom;
146146 /// # use bstr::ByteSlice;
147147 /// # use gix_config::parse::section;
148- /// let mut gix_config = gix_config::File::default();
149- /// let mut section = gix_config .new_section("hello", Some(Cow::Borrowed("world".into())))?;
148+ /// let mut git_config = gix_config::File::default();
149+ /// let mut section = git_config .new_section("hello", Some(Cow::Borrowed("world".into())))?;
150150 /// section.push(section::Key::try_from("a")?, Some("b".into()));
151151 /// let nl = section.newline().to_owned();
152- /// assert_eq!(gix_config .to_string(), format!("[hello \"world\"]{nl}\ta = b{nl}"));
153- /// let _section = gix_config .new_section("core", None);
154- /// assert_eq!(gix_config .to_string(), format!("[hello \"world\"]{nl}\ta = b{nl}[core]{nl}"));
152+ /// assert_eq!(git_config .to_string(), format!("[hello \"world\"]{nl}\ta = b{nl}"));
153+ /// let _section = git_config .new_section("core", None);
154+ /// assert_eq!(git_config .to_string(), format!("[hello \"world\"]{nl}\ta = b{nl}[core]{nl}"));
155155 /// # Ok::<(), Box<dyn std::error::Error>>(())
156156 /// ```
157157 pub fn new_section (
@@ -177,13 +177,13 @@ impl<'event> File<'event> {
177177 /// ```
178178 /// # use gix_config::File;
179179 /// # use std::convert::TryFrom;
180- /// let mut gix_config = gix_config::File::try_from(
180+ /// let mut git_config = gix_config::File::try_from(
181181 /// r#"[hello "world"]
182182 /// some-value = 4
183183 /// "#)?;
184184 ///
185- /// let section = gix_config .remove_section("hello", Some("world".into()));
186- /// assert_eq!(gix_config .to_string(), "");
185+ /// let section = git_config .remove_section("hello", Some("world".into()));
186+ /// assert_eq!(git_config .to_string(), "");
187187 /// # Ok::<(), Box<dyn std::error::Error>>(())
188188 /// ```
189189 ///
@@ -192,15 +192,15 @@ impl<'event> File<'event> {
192192 /// ```
193193 /// # use gix_config::File;
194194 /// # use std::convert::TryFrom;
195- /// let mut gix_config = gix_config::File::try_from(
195+ /// let mut git_config = gix_config::File::try_from(
196196 /// r#"[hello "world"]
197197 /// some-value = 4
198198 /// [hello "world"]
199199 /// some-value = 5
200200 /// "#)?;
201201 ///
202- /// let section = gix_config .remove_section("hello", Some("world".into()));
203- /// assert_eq!(gix_config .to_string(), "[hello \"world\"]\n some-value = 4\n");
202+ /// let section = git_config .remove_section("hello", Some("world".into()));
203+ /// assert_eq!(git_config .to_string(), "[hello \"world\"]\n some-value = 4\n");
204204 /// # Ok::<(), Box<dyn std::error::Error>>(())
205205 /// ```
206206 pub fn remove_section < ' a > (
0 commit comments