Skip to content
Permalink
Browse files

Make the prema-unstable char::escape_debug_ext method crate-private

  • Loading branch information...
SimonSapin committed Feb 2, 2019
1 parent 92cce78 commit 114593d638c55f1754d675a6f2ff38a973a0d8ae
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/libcore/char/methods.rs
@@ -189,10 +189,8 @@ impl char {
/// An extended version of `escape_debug` that optionally permits escaping
/// Extended Grapheme codepoints. This allows us to format characters like
/// nonspacing marks better when they're at the start of a string.
#[doc(hidden)]
#[unstable(feature = "str_internals", issue = "0")]
#[inline]
pub fn escape_debug_ext(self, escape_grapheme_extended: bool) -> EscapeDebug {
pub(crate) fn escape_debug_ext(self, escape_grapheme_extended: bool) -> EscapeDebug {
let init_state = match self {
'\t' => EscapeDefaultState::Backslash('t'),
'\r' => EscapeDefaultState::Backslash('r'),

0 comments on commit 114593d

Please sign in to comment.
You can’t perform that action at this time.